[clang] [CIR] Implement Statement Expressions (PR #153677)

Morris Hafner via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 14:34:36 PDT 2025


================
@@ -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


More information about the cfe-commits mailing list