aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-09 20:23:40 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-09 20:23:40 +0000
commit7433189b6e9d6661a7edb80d73e43afc26456f3c (patch)
tree7be91aa43dbf6026626bb8105de17767a8561dbc /lib/CodeGen/CGStmt.cpp
parent4cc1a4703363ff940b6273aeef9d96a87edeb04b (diff)
Save and restore the DidCallStackSave variable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r--lib/CodeGen/CGStmt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index 4c634efb10..17b6fa4b48 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -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;