diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-21 22:48:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-21 22:48:15 +0000 |
commit | 128a7a96f01864cde6f807075e6a1a5e92132852 (patch) | |
tree | 72012d0a293f751a8b33580cd9acf941d196af40 /lib | |
parent | 15207f45db9d95105ea4b17e2fb7d0c516a21ac6 (diff) | |
download | external_llvm-128a7a96f01864cde6f807075e6a1a5e92132852.zip external_llvm-128a7a96f01864cde6f807075e6a1a5e92132852.tar.gz external_llvm-128a7a96f01864cde6f807075e6a1a5e92132852.tar.bz2 |
Fix off by one bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/Printer.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86AsmPrinter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 3c85853..25c5ccc 100644 --- a/lib/Target/X86/Printer.cpp +++ b/lib/Target/X86/Printer.cpp @@ -483,7 +483,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O, if (MI->getNumOperands() == 3) { unsigned Size = 4; - emitConstant(O, MI->getOperand(1).getImmedValue(), Size); + emitConstant(O, MI->getOperand(2).getImmedValue(), Size); } O << "\n\t\t\t\t"; diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 3c85853..25c5ccc 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -483,7 +483,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O, if (MI->getNumOperands() == 3) { unsigned Size = 4; - emitConstant(O, MI->getOperand(1).getImmedValue(), Size); + emitConstant(O, MI->getOperand(2).getImmedValue(), Size); } O << "\n\t\t\t\t"; |