diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-09 20:23:40 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-09 20:23:40 +0000 |
commit | ff0bb6ce62e5cac18d77165975c58b057792186f (patch) | |
tree | 6ab430431b7002afc3c2eebf1d20fe5f1dc132f0 /clang/lib/CodeGen | |
parent | f4478e94b8a8694318ee4d9a070969d74427eef2 (diff) | |
download | bcm5719-llvm-ff0bb6ce62e5cac18d77165975c58b057792186f.tar.gz bcm5719-llvm-ff0bb6ce62e5cac18d77165975c58b057792186f.zip |
Save and restore the DidCallStackSave variable
llvm-svn: 64157
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 4c634efb106..17b6fa4b48d 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/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; |