mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 13:08:00 +00:00
Add paranoia checking
llvm-svn: 6856
This commit is contained in:
parent
08cc123f78
commit
a98d464fd6
@ -303,7 +303,7 @@ Value *TailDup::GetValueInBlock(BasicBlock *BB, Value *OrigVal,
|
||||
}
|
||||
|
||||
// Found a value to replace the PHI node with?
|
||||
if (ReplVal) {
|
||||
if (ReplVal && ReplVal != PN) {
|
||||
PN->replaceAllUsesWith(ReplVal);
|
||||
BBVal = ReplVal;
|
||||
if (BBOutVal == PN) BBOutVal = ReplVal;
|
||||
|
Loading…
Reference in New Issue
Block a user