commit | 7f8217f64bc6efabc680f4ffff77e199f6c53103 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Jun 20 08:13:12 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Jun 20 08:13:12 2009 +0000 |
tree | e196f55c95c97a4333518ad1f90634fe5623dd27 | |
parent | dc479f6ebf38c862e75eace7b24c3232249b7ec2 [diff] [blame] |
fix edit-o git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73824 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp index fd31aaf..54de7e9 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
@@ -380,7 +380,8 @@ 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 << ')';