mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 15:22:41 +00:00
Fix associativity of parameters to assert(): now it actually makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8d8fb26a6
commit
c1f901c589
@ -823,8 +823,9 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
// register reference for the mod/rm field, it's a memory reference.
|
// register reference for the mod/rm field, it's a memory reference.
|
||||||
//
|
//
|
||||||
assert(MI->getOperand(0).isRegister() &&
|
assert(MI->getOperand(0).isRegister() &&
|
||||||
(MI->getNumOperands() == 1+4 && isMem(MI, 1)) ||
|
((MI->getNumOperands() == 1+4 && isMem(MI, 1)) ||
|
||||||
(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && isMem(MI, 1))
|
(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() &&
|
||||||
|
isMem(MI, 1)))
|
||||||
&& "Bad format for MRMSrcMem!");
|
&& "Bad format for MRMSrcMem!");
|
||||||
O << TII.getName(MI->getOpcode()) << " ";
|
O << TII.getName(MI->getOpcode()) << " ";
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
@ -823,8 +823,9 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
// register reference for the mod/rm field, it's a memory reference.
|
// register reference for the mod/rm field, it's a memory reference.
|
||||||
//
|
//
|
||||||
assert(MI->getOperand(0).isRegister() &&
|
assert(MI->getOperand(0).isRegister() &&
|
||||||
(MI->getNumOperands() == 1+4 && isMem(MI, 1)) ||
|
((MI->getNumOperands() == 1+4 && isMem(MI, 1)) ||
|
||||||
(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && isMem(MI, 1))
|
(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() &&
|
||||||
|
isMem(MI, 1)))
|
||||||
&& "Bad format for MRMSrcMem!");
|
&& "Bad format for MRMSrcMem!");
|
||||||
O << TII.getName(MI->getOpcode()) << " ";
|
O << TII.getName(MI->getOpcode()) << " ";
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user