================
@@ -561,7 +558,6 @@ cir::FuncOp CIRGenFunction::generateCode(clang::GlobalDecl
gd, cir::FuncOp fn,
emitImplicitAssignmentOperatorBody(args);
} else if (body) {
if (mlir::failed(emitFunctionBody(body))) {
- fn.erase();
----------------
mmha wrote:
This crashed the openacc-not-implemented test due to a dangling iterator. Is
there a point in deleting the function here if codegen failed?
https://github.com/llvm/llvm-project/pull/153677
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits