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