Save and restore the DidCallStackSave variable

llvm-svn: 64157
This commit is contained in:
Anders Carlsson 2009-02-09 20:23:40 +00:00
parent f4478e94b8
commit ff0bb6ce62
1 changed files with 4 additions and 0 deletions

View File

@ -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;