1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Fix a error that hadn't yet cause any problems, but I'm sure it would have

somewhere down the road.

llvm-svn: 29197
This commit is contained in:
Owen Anderson 2006-07-19 03:51:48 +00:00
parent 8d82c97338
commit 8a36136176

View File

@ -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;