From: Vikram S. Adve Date: Wed, 8 Aug 2001 00:15:42 +0000 (+0000) Subject: Bug fix in ValOpIterator: not moving past operand with NULL Value. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c02601b5889d0ec6f2cfc58a3d5b2a0c0d65665;p=oota-llvm.git 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 --- diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 166d5a21f3b..4b46d7dc82d 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -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; }