diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 9b6db724939..1181e0506be 100644 --- a/lib/Target/X86/Printer.cpp +++ b/lib/Target/X86/Printer.cpp @@ -823,8 +823,9 @@ void Printer::printMachineInstruction(const MachineInstr *MI) { // register reference for the mod/rm field, it's a memory reference. // assert(MI->getOperand(0).isRegister() && - (MI->getNumOperands() == 1+4 && isMem(MI, 1)) || -(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && isMem(MI, 1)) + ((MI->getNumOperands() == 1+4 && isMem(MI, 1)) || + (MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && + isMem(MI, 1))) && "Bad format for MRMSrcMem!"); O << TII.getName(MI->getOpcode()) << " "; printOp(MI->getOperand(0)); diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 9b6db724939..1181e0506be 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -823,8 +823,9 @@ void Printer::printMachineInstruction(const MachineInstr *MI) { // register reference for the mod/rm field, it's a memory reference. // assert(MI->getOperand(0).isRegister() && - (MI->getNumOperands() == 1+4 && isMem(MI, 1)) || -(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && isMem(MI, 1)) + ((MI->getNumOperands() == 1+4 && isMem(MI, 1)) || + (MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && + isMem(MI, 1))) && "Bad format for MRMSrcMem!"); O << TII.getName(MI->getOpcode()) << " "; printOp(MI->getOperand(0));