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 | e14282e274599a8de8921e7715a85c2c61d6f91c (patch) | |
tree | 7ac7d0eb671c309a536f1bde8f7baa2ac22608a8 /clang/lib | |
parent | 0773533b27d40fa9f68be97ab7c737a5dcd37930 (diff) | |
download | bcm5719-llvm-e14282e274599a8de8921e7715a85c2c61d6f91c.tar.gz bcm5719-llvm-e14282e274599a8de8921e7715a85c2c61d6f91c.zip |
Make sure to reset the DidCallStackSave variable before emitting a compound statement. Fixes PR3649.
llvm-svn: 65291
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 1d28708c46d..307dccff2f2 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/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) |