[cfe-commits] r65291 - /cfe/trunk/lib/CodeGen/CGStmt.cpp

Anders Carlsson andersca at mac.com
Sun Feb 22 10:44:21 PST 2009


Author: andersca
Date: Sun Feb 22 12:44:21 2009
New Revision: 65291

URL: http://llvm.org/viewvc/llvm-project?rev=65291&view=rev
Log:
Make sure to reset the DidCallStackSave variable before emitting a compound statement. Fixes PR3649.

Modified:
    cfe/trunk/lib/CodeGen/CGStmt.cpp

Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=65291&r1=65290&r2=65291&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Sun Feb 22 12:44:21 2009
@@ -134,6 +134,7 @@
   // 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)





More information about the cfe-commits mailing list