mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 09:14:30 +00:00
Add paranoia checking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ddd7e39537
commit
066ab6ac80
@ -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…
x
Reference in New Issue
Block a user