Skip to content

Commit 15c1888

Browse files
committed
Use correct CleanupKind
1 parent c459e4c commit 15c1888

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4976,7 +4976,8 @@ void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
49764976
// expression.
49774977
if (!CGM.getCodeGenOpts().NoLifetimeMarkersForTemporaries &&
49784978
EmitLifetimeStart(ArgSlotAlloca.getPointer()))
4979-
pushFullExprCleanup<CallLifetimeEnd>(NormalAndEHCleanup, ArgSlotAlloca);
4979+
pushFullExprCleanup<CallLifetimeEnd>(NormalEHLifetimeMarker,
4980+
ArgSlotAlloca);
49804981
}
49814982

49824983
args.add(EmitAnyExpr(E, ArgSlot), type);

0 commit comments

Comments
 (0)