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 @@ -6312,10 +6312,11 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
63126312 for (CallLifetimeEnd &LifetimeEnd : CallLifetimeEndAfterCall)
63136313 LifetimeEnd.Emit (*this , /* Flags=*/ {});
63146314
6315- if (!CGM.getCodeGenOpts ().NoLifetimeMarkersForTemporaries )
6316- for (const CallArgList::EndLifetimeInfo < :
6317- CallArgs.getLifetimeCleanups ())
6318- EmitLifetimeEnd (LT.Addr );
6315+ // Add lifetime end markers for any temporary aggregates. Under
6316+ // NoLifetimeMarkersForTemporaries LifetimeCleanups will be empty, so this is
6317+ // still correct.
6318+ for (const CallArgList::EndLifetimeInfo < : CallArgs.getLifetimeCleanups ())
6319+ EmitLifetimeEnd (LT.Addr );
63196320
63206321 if (!ReturnValue.isExternallyDestructed () &&
63216322 RetTy.isDestructedType () == QualType::DK_nontrivial_c_struct)
You can’t perform that action at this time.
0 commit comments