[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

Paul Kirth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 3 16:58:34 PST 2025


================
@@ -6291,6 +6296,11 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
   for (CallLifetimeEnd &LifetimeEnd : CallLifetimeEndAfterCall)
     LifetimeEnd.Emit(*this, /*Flags=*/{});
 
+  if (!CGM.getCodeGenOpts().NoLifetimeMarkersForTemporaries)
----------------
ilovepi wrote:

I added a test specifically for invoke instructions. While it does make the bounds tighter, it does seem like we're missing the exception handling bits. I'll take a look at fixing that tomorrow.

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


More information about the llvm-branch-commits mailing list