diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-17 21:21:31 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-17 21:21:31 +0000 |
commit | ab82fd9ff6874118594bc64bdafcadaa5b7fcb60 (patch) | |
tree | 3d77bef6d1fe5f1524f55f1c9ed436f8fb70e6bf /lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 0906a7c46cfc71e7c09dd6362df4310e72fdbc6b (diff) | |
download | external_llvm-ab82fd9ff6874118594bc64bdafcadaa5b7fcb60.zip external_llvm-ab82fd9ff6874118594bc64bdafcadaa5b7fcb60.tar.gz external_llvm-ab82fd9ff6874118594bc64bdafcadaa5b7fcb60.tar.bz2 |
Increment the insertion iterator to beyond the landingpad instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | lib/Transforms/Utils/BasicBlockUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index b4f74f9..bd0dde3 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -287,7 +287,7 @@ BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) { /// BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) { BasicBlock::iterator SplitIt = SplitPt; - while (isa<PHINode>(SplitIt)) + while (isa<PHINode>(SplitIt) || isa<LandingPadInst>(SplitIt)) ++SplitIt; BasicBlock *New = Old->splitBasicBlock(SplitIt, Old->getName()+".split"); |