fix edit-o

llvm-svn: 73824
This commit is contained in:
Chris Lattner 2009-06-20 08:13:12 +00:00
parent 88f663c04d
commit b4b5c10477
1 changed files with 2 additions and 1 deletions

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 << ')';