forked from OSchip/llvm-project
Save and restore the DidCallStackSave variable
llvm-svn: 64157
This commit is contained in:
parent
f4478e94b8
commit
ff0bb6ce62
|
@ -134,6 +134,8 @@ RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast,
|
|||
// Keep track of the current cleanup stack depth.
|
||||
size_t CleanupStackDepth = CleanupEntries.size();
|
||||
|
||||
bool OldDidCallStackSave = DidCallStackSave;
|
||||
|
||||
// Push a null stack save value.
|
||||
StackSaveValues.push_back(0);
|
||||
|
||||
|
@ -174,6 +176,8 @@ RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast,
|
|||
Builder.CreateCall(F, V);
|
||||
}
|
||||
|
||||
DidCallStackSave = OldDidCallStackSave;
|
||||
|
||||
EmitCleanupBlocks(CleanupStackDepth);
|
||||
|
||||
return RV;
|
||||
|
|
Loading…
Reference in New Issue