[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
Thu Dec 4 13:56:02 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've updated the implementation (and tests). LMK if that's more in line with what you were thinking for the error handling paths.
https://github.com/llvm/llvm-project/pull/170518
More information about the llvm-branch-commits
mailing list