mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Assertion could never fail because another one would in it's place. :)
llvm-svn: 1449
This commit is contained in:
parent
44a0bf36c6
commit
488f202019
@ -179,7 +179,7 @@ bool opt::ConstantPropogation::doConstantPropogation(BasicBlock *BB,
|
||||
} else if (PHINode *PN = dyn_cast<PHINode>(Inst)) {
|
||||
// If it's a PHI node and only has one operand
|
||||
// Then replace it directly with that operand.
|
||||
assert(PN->getOperand(0) && "PHI Node must have at least one operand!");
|
||||
assert(PN->getNumOperands() && "PHI Node must have at least one operand!");
|
||||
if (PN->getNumOperands() == 1) { // If the PHI Node has exactly 1 operand
|
||||
Value *V = PN->getOperand(0);
|
||||
PN->replaceAllUsesWith(V); // Replace all uses of this PHI
|
||||
|
Loading…
Reference in New Issue
Block a user