diff options
author | Owen Anderson <resistor@mac.com> | 2006-07-19 03:51:48 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2006-07-19 03:51:48 +0000 |
commit | 00b974cdbc5121795c766bf2bb58ea303a4d1111 (patch) | |
tree | d84563ce21b41f6417659d5a9674b92862c5f177 /llvm/lib/Transforms | |
parent | 3650465273f3de0371f5b5a1c70eb60f083a9fc5 (diff) | |
download | bcm5719-llvm-00b974cdbc5121795c766bf2bb58ea303a4d1111.tar.gz bcm5719-llvm-00b974cdbc5121795c766bf2bb58ea303a4d1111.zip |
Fix a error that hadn't yet cause any problems, but I'm sure it would have
somewhere down the road.
llvm-svn: 29197
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index b3003845d4c..8f049b8668e 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/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<PHINode>(InsertPt)) ++InsertPt; for (BasicBlock::iterator I = MiddleBlock->begin(); (OldLCSSA = dyn_cast<PHINode>(I)) && InsertedPHIs.count(OldLCSSA) == 0; |