fix edit-o

llvm-svn: 73824
This commit is contained in:
Chris Lattner 2009-06-20 08:13:12 +00:00
parent 3ffae2f77e
commit b0324ab35a

View File

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