mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-03 14:08:57 +00:00
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:
parent
6144686af6
commit
4130278fbe
@ -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
Block a user