summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index f5a802f0b74..4ba4d600f86 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -512,3 +512,12 @@ llvm::Value* CodeGenFunction::EmitVAListRef(const Expr* E) {
}
return EmitLValue(E).getAddress();
}
+
+llvm::BasicBlock *CodeGenFunction::CreateCleanupBlock()
+{
+ llvm::BasicBlock *CleanupBlock = createBasicBlock("cleanup");
+
+ CleanupEntries.push_back(CleanupEntry(CleanupBlock));
+
+ return CleanupBlock;
+}
OpenPOWER on IntegriCloud