[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)
Eli Friedman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 14 14:10:58 PST 2026
================
@@ -6310,6 +6316,12 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
for (CallLifetimeEnd &LifetimeEnd : CallLifetimeEndAfterCall)
LifetimeEnd.Emit(*this, /*Flags=*/{});
+ // Add lifetime end markers for any temporary aggregates. Under
+ // NoLifetimeMarkersForTemporaries LifetimeCleanups will be empty, so this is
+ // still correct.
----------------
efriedma-quic wrote:
Maybe just rephrase to say "LifetimeCleanups will be empty if lifetime markers are disabled".
https://github.com/llvm/llvm-project/pull/170518
More information about the llvm-branch-commits
mailing list