fix edit-o
authorChris Lattner <sabre@nondot.org>
Sat, 20 Jun 2009 08:13:12 +0000 (08:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 20 Jun 2009 08:13:12 +0000 (08:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73824 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp

index fd31aaf93304fb357db30acad1b3b0dbc4bde288..54de7e9dd20837658d3100ac5b87191ffb07c8b4 100644 (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 << ')';