diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-22 18:44:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-22 18:44:21 +0000 |
commit | 66b41512466db9a4b2859db517692fb79dae449e (patch) | |
tree | ada74057ee509c5b0c3aefadcdb037966adca19b /lib/CodeGen/CGStmt.cpp | |
parent | 44baa8abba2a1552b6b50bf750a8750ab9da9f76 (diff) |
Make sure to reset the DidCallStackSave variable before emitting a compound statement. Fixes PR3649.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 1d28708c46..307dccff2f 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -134,6 +134,7 @@ RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, // Keep track of the current cleanup stack depth. size_t CleanupStackDepth = CleanupEntries.size(); bool OldDidCallStackSave = DidCallStackSave; + DidCallStackSave = false; for (CompoundStmt::const_body_iterator I = S.body_begin(), E = S.body_end()-GetLast; I != E; ++I) |