forked from OSchip/llvm-project
Fix bug when checking phi operands in InstCombiner::visitPHINode(),
found by code inspection. llvm-svn: 129641
This commit is contained in:
parent
47f86e6c60
commit
7d03e9be47
|
@ -831,7 +831,7 @@ Instruction *InstCombiner::visitPHINode(PHINode &PN) {
|
|||
++InValNo;
|
||||
|
||||
if (InValNo != NumOperandVals) {
|
||||
Value *NonPhiInVal = PN.getOperand(InValNo);
|
||||
Value *NonPhiInVal = PN.getIncomingValue(InValNo);
|
||||
|
||||
// Scan the rest of the operands to see if there are any conflicts, if so
|
||||
// there is no need to recursively scan other phis.
|
||||
|
|
Loading…
Reference in New Issue