summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-21 11:18:06 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-21 11:18:06 +0000
commitbf814c79b61942b49a0e549a131da7d5d1e1005b (patch)
tree6e4299519ad005521dd372e77aefa4f43b589a85 /clang/lib/CodeGen/CodeGenFunction.h
parente683359fc9925b16c3fea1487411ab859484dcfb (diff)
downloadbcm5719-llvm-bf814c79b61942b49a0e549a131da7d5d1e1005b.tar.gz
bcm5719-llvm-bf814c79b61942b49a0e549a131da7d5d1e1005b.zip
I failed to notice that my last patch wasn't doing as much as it could
because EmitBranch actually clears the insert point. This version actually accomplishes what I initially wanted. llvm-svn: 101998
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 7072301b4bc..a913459adee 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -184,7 +184,8 @@ public:
public:
DelayedCleanupBlock(CodeGenFunction &cgf, bool ehonly = false)
: CGF(cgf), CurBB(CGF.Builder.GetInsertBlock()),
- CleanupEntryBB(CGF.createBasicBlock("cleanup")), CleanupExitBB(0),
+ CleanupEntryBB(CGF.createBasicBlock("cleanup")),
+ CleanupExitBB(0),
CurInvokeDest(CGF.getInvokeDest()),
EHOnly(ehonly) {
CGF.Builder.SetInsertPoint(CleanupEntryBB);
OpenPOWER on IntegriCloud