[cfe-commits] r64157 - /cfe/trunk/lib/CodeGen/CGStmt.cpp
Anders Carlsson
andersca at mac.com
Mon Feb 9 12:23:40 PST 2009
Author: andersca
Date: Mon Feb 9 14:23:40 2009
New Revision: 64157
URL: http://llvm.org/viewvc/llvm-project?rev=64157&view=rev
Log:
Save and restore the DidCallStackSave variable
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=64157&r1=64156&r2=64157&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Mon Feb 9 14:23:40 2009
@@ -134,6 +134,8 @@
// 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 @@
Builder.CreateCall(F, V);
}
+ DidCallStackSave = OldDidCallStackSave;
+
EmitCleanupBlocks(CleanupStackDepth);
return RV;
More information about the cfe-commits
mailing list