aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/MachineInstr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 166d5a21f3..4b46d7dc82 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;
}