aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-08 03:22:36 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-08 03:22:36 +0000
commit6fc559136b8ef98bfb824a0fd49df385405f2879 (patch)
tree246104138441932e4d73fd93ca31d34abbc931c0 /lib/CodeGen/CodeGenFunction.cpp
parent1093c2c40a7c262d206d724e912b32cbad2d4e14 (diff)
CleanupScope needs to push the cleanup block in its destructor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 4b3ab2de19..e9bcfb51dc 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -517,13 +517,9 @@ llvm::Value* CodeGenFunction::EmitVAListRef(const Expr* E) {
return EmitLValue(E).getAddress();
}
-llvm::BasicBlock *CodeGenFunction::CreateCleanupBlock()
+void CodeGenFunction::PushCleanupBlock(llvm::BasicBlock *CleanupBlock)
{
- llvm::BasicBlock *CleanupBlock = createBasicBlock("cleanup");
-
CleanupEntries.push_back(CleanupEntry(CleanupBlock));
-
- return CleanupBlock;
}
void CodeGenFunction::EmitCleanupBlocks(size_t OldCleanupStackSize)