Fix bug when checking phi operands in InstCombiner::visitPHINode(),

found by code inspection.

llvm-svn: 129641
This commit is contained in:
Jay Foad 2011-04-16 14:17:37 +00:00
parent 47f86e6c60
commit 7d03e9be47
1 changed files with 1 additions and 1 deletions

View File

@ -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.