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

found by code inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad 2011-04-16 14:17:37 +00:00
parent 6144686af6
commit 4130278fbe

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.