From db5b9cfd8625282aa5e08daaa8c10dd99469f0d9 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 19 Jul 2006 03:51:48 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/LoopUnswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;