From: Owen Anderson Date: Wed, 19 Jul 2006 03:51:48 +0000 (+0000) Subject: Fix a error that hadn't yet cause any problems, but I'm sure it would have X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=db5b9cfd8625282aa5e08daaa8c10dd99469f0d9;p=oota-llvm.git Fix a error that hadn't yet cause any problems, but I'm sure it would have somewhere down the road. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29197 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index b3003845d4c..8f049b8668e 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -610,7 +610,7 @@ void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val, InsertedPHIs.insert(NewLCSSA); } - Instruction* InsertPt = EndBlock->begin(); + BasicBlock::iterator InsertPt = EndBlock->begin(); while (dyn_cast(InsertPt)) ++InsertPt; for (BasicBlock::iterator I = MiddleBlock->begin(); (OldLCSSA = dyn_cast(I)) && InsertedPHIs.count(OldLCSSA) == 0;