[llvm-commits] [llvm] r137872 - /llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp
Bill Wendling
isanbard at gmail.com
Wed Aug 17 14:21:31 PDT 2011
Author: void
Date: Wed Aug 17 16:21:31 2011
New Revision: 137872
URL: http://llvm.org/viewvc/llvm-project?rev=137872&view=rev
Log:
Increment the insertion iterator to beyond the landingpad instruction.
Modified:
llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp
Modified: llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp?rev=137872&r1=137871&r2=137872&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp Wed Aug 17 16:21:31 2011
@@ -287,7 +287,7 @@
///
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");
More information about the llvm-commits
mailing list