File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6313,10 +6313,11 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
63136313 for (CallLifetimeEnd &LifetimeEnd : CallLifetimeEndAfterCall)
63146314 LifetimeEnd.Emit (*this , /* Flags=*/ {});
63156315
6316- if (!CGM.getCodeGenOpts ().NoLifetimeMarkersForTemporaries )
6317- for (const CallArgList::EndLifetimeInfo < :
6318- CallArgs.getLifetimeCleanups ())
6319- EmitLifetimeEnd (LT.Addr );
6316+ // Add lifetime end markers for any temporary aggregates. Under
6317+ // NoLifetimeMarkersForTemporaries LifetimeCleanups will be empty, so this is
6318+ // still correct.
6319+ for (const CallArgList::EndLifetimeInfo < : CallArgs.getLifetimeCleanups ())
6320+ EmitLifetimeEnd (LT.Addr );
63206321
63216322 if (!ReturnValue.isExternallyDestructed () &&
63226323 RetTy.isDestructedType () == QualType::DK_nontrivial_c_struct)
You can’t perform that action at this time.
0 commit comments