mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
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:
parent
93689114a5
commit
6d66944388
@ -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!");
|
||||
|
||||
|
@ -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!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user