projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc479f6
)
fix edit-o
author
Chris Lattner
<sabre@nondot.org>
Sat, 20 Jun 2009 08:13:12 +0000
(08:13 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
index fd31aaf93304fb357db30acad1b3b0dbc4bde288..54de7e9dd20837658d3100ac5b87191ffb07c8b4 100644
(file)
--- a/
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
+++ b/
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
@@
-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 << ')';