From 8abdbd8118e37e759d1ce3f5814ee0a24b1589e8 Mon Sep 17 00:00:00 2001 From: John McCall Date: Sat, 18 Sep 2010 02:24:39 +0000 Subject: Adjust a fixup's starting branch if it's being resolved because it reached the outermost scope and it hasn't yet been forwarded to a cleanup. Fixed PR8175. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114259 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 4a5beb4baa..d2fa57a9ed 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -414,7 +414,7 @@ public: void popNullFixups(); /// Clears the branch-fixups list. This should only be called by - /// CodeGenFunction::ResolveAllBranchFixups. + /// ResolveAllBranchFixups. void clearFixups() { BranchFixups.clear(); } /// Gets the next EH destination index. @@ -625,7 +625,6 @@ public: /// the cleanup blocks that have been added. void PopCleanupBlocks(EHScopeStack::stable_iterator OldCleanupStackSize); - void ResolveAllBranchFixups(llvm::SwitchInst *Switch); void ResolveBranchFixups(llvm::BasicBlock *Target); /// The given basic block lies in the current EH scope, but may be a -- cgit v1.2.3-18-g5258