fix edit-o

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-06-20 08:13:12 +00:00
parent dc479f6ebf
commit 7f8217f64b

View File

@@ -380,7 +380,8 @@ void X86ATTAsmPrinter::printLeaMemReference(const MCInst *MI, unsigned Op) {
if (IndexReg.getReg()) { if (IndexReg.getReg()) {
O << ','; O << ',';
printOperand(MI, Op+2); printOperand(MI, Op+2);
if (MI->getOperand(Op+1).getImm() != 1) unsigned ScaleVal = MI->getOperand(Op+1).getImm();
if (ScaleVal != 1)
O << ',' << ScaleVal; O << ',' << ScaleVal;
} }
O << ')'; O << ')';