Bug fix in ValOpIterator: not moving past operand with NULL Value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2001-08-08 00:15:42 +00:00
parent 0b03c6a492
commit 7c02601b58

View File

@ -293,8 +293,7 @@ private:
inline void skipToNextVal() {
while (i < minstr->getNumOperands()
&& minstr->getOperand(i).getOperandType() != MachineOperand::MO_VirtualRegister
&& minstr->getOperand(i).getOperandType() != MachineOperand::MO_CCRegister)
&& minstr->getOperand(i).getVRegValue() == NULL)
++i;
}