Revert accidental commit.

llvm-svn: 229510
This commit is contained in:
Benjamin Kramer 2015-02-17 16:53:08 +00:00
parent 959e828b51
commit c749745bac
1 changed files with 3 additions and 2 deletions

View File

@ -731,7 +731,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
}
llvm::BasicBlock *FallthroughDest = nullptr;
llvm::BasicBlock::InstListType InstsToAppend;
SmallVector<llvm::Instruction*, 2> InstsToAppend;
// If there's exactly one branch-after and no other threads,
// we can route it without a switch.
@ -796,7 +796,8 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
// Append the prepared cleanup prologue from above.
llvm::BasicBlock *NormalExit = Builder.GetInsertBlock();
NormalExit->getInstList().splice(NormalExit->end(), InstsToAppend);
for (unsigned I = 0, E = InstsToAppend.size(); I != E; ++I)
NormalExit->getInstList().push_back(InstsToAppend[I]);
// Optimistically hope that any fixups will continue falling through.
for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups();