================ @@ -195,7 +195,16 @@ void CIRGenFunction::startFunction(GlobalDecl gd, QualType returnType, mlir::Location fnBodyBegin = getLoc(fd->getBody()->getBeginLoc()); builder.CIRBaseBuilderTy::createStore(fnBodyBegin, paramVal, addrVal); } + assert(builder.getInsertionBlock() && "Should be valid"); + + auto fnEndLoc = getLoc(fd->getBody()->getEndLoc()); ---------------- erichkeane wrote:
not a place we can use auto I think. Also, could this just inlined in the call rather than doing the work to look it up even if we don't use it? https://github.com/llvm/llvm-project/pull/129933 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits