mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Fix a crash related to updating Phi nodes in the original header block. This was
causing a crash in 175.vpr llvm-svn: 29887
This commit is contained in:
parent
e02cb4cda0
commit
aac2dbf9dd
@ -269,7 +269,8 @@ bool LoopUnroll::visitLoop(Loop *L) {
|
||||
if (isa<Instruction>(InVal))
|
||||
InVal = LastValueMap[InVal];
|
||||
(*SI)->removeIncomingValue(LatchBlock, false);
|
||||
(*SI)->addIncoming(InVal, cast<BasicBlock>(LastValueMap[LatchBlock]));
|
||||
if (InVal)
|
||||
(*SI)->addIncoming(InVal, cast<BasicBlock>(LastValueMap[LatchBlock]));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user