Avoid bad assertion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-04 17:28:40 +00:00
parent 93689114a5
commit 6d66944388
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
assert(isReg(MI->getOperand(0)) &&
(MI->getNumOperands() == 1 ||
(MI->getNumOperands() == 2 &&
(MI->getOperand(1).getVRegValue() ||
(MI->getOperand(1).getVRegValueOrNull() ||
isImmediate(MI->getOperand(1))))) &&
"Illegal form for AddRegFrm instruction!");

View File

@ -183,7 +183,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
assert(isReg(MI->getOperand(0)) &&
(MI->getNumOperands() == 1 ||
(MI->getNumOperands() == 2 &&
(MI->getOperand(1).getVRegValue() ||
(MI->getOperand(1).getVRegValueOrNull() ||
isImmediate(MI->getOperand(1))))) &&
"Illegal form for AddRegFrm instruction!");