mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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
This commit is contained in:
parent
a6dc9fb745
commit
db5b9cfd86
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user