From 7c02601b5889d0ec6f2cfc58a3d5b2a0c0d65665 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 8 Aug 2001 00:15:42 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/MachineInstr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.34.1