diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-10 09:13:37 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-10 09:13:37 +0000 |
commit | 50b3b50cd03f09f7fa87f48edaa72d519948ab63 (patch) | |
tree | d89dff29662339d5c0047000150abb25dc8967b9 | |
parent | 438f7bc67cf235ccee7e6f7ac7f4ae2186eb8020 (diff) | |
download | external_llvm-50b3b50cd03f09f7fa87f48edaa72d519948ab63.zip external_llvm-50b3b50cd03f09f7fa87f48edaa72d519948ab63.tar.gz external_llvm-50b3b50cd03f09f7fa87f48edaa72d519948ab63.tar.bz2 |
Fix a potential bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31634 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 74d4461..484402a 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -172,7 +172,7 @@ static MachineInstr *FuseTwoAddrInst(unsigned Opcode, unsigned FrameIndex, for (unsigned i = 0; i != NumOps; ++i) { MachineOperand &MO = MI->getOperand(i+2); if (MO.isReg()) - MIB = MIB.addReg(MO.getReg()); + MIB = MIB.addReg(MO.getReg(), false, MO.isImplicit()); else if (MO.isImm()) MIB = MIB.addImm(MO.getImm()); else if (MO.isGlobalAddress()) |