[clang] [CIR] Emit lifetime markers for temporaries (PR #236102)

Jiahao Guo via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 13 04:59:15 PST 2026


================
@@ -2121,7 +2122,22 @@ LValue CIRGenFunction::emitMaterializeTemporaryExpr(
       emitAnyExprToMem(e, object, Qualifiers(), /*isInitializer=*/true);
     }
   } else {
-    assert(!cir::MissingFeatures::emitLifetimeMarkers());
+    mlir::Location loc = getLoc(m->getSourceRange());
----------------
E00N777 wrote:

I missed the hoisting. Now I've mirrored the classic codegen implementation in FullExpression

https://github.com/llvm/llvm-project/pull/236102


More information about the cfe-commits mailing list