[clang] [CIR] Implement Statement Expressions (PR #153677)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 15 14:46:08 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();
----------------
bcardosolopes wrote:
Gotcha! Not sure I remember what a good reason might have been, and I'm fine with removing this. Thanks for giving the extra background, hard to grasp otherwise.
https://github.com/llvm/llvm-project/pull/153677
More information about the cfe-commits
mailing list