aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-26 22:41:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-26 22:41:48 +0000
commitf6fa5ee5c201f91217c3034ddcaecb63e7d8cd5a (patch)
treebb79c5b2e1fe5eb2e18f3c39af43bfc30f21ddc4 /lib/Target/ARM/ARMInstrInfo.cpp
parentad7ccf34b5de14bd2b9ddc8072d14582a2ce29d9 (diff)
findRegisterUseOperand() changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp
index e89dcf0ac8..b630fcb1dc 100644
--- a/lib/Target/ARM/ARMInstrInfo.cpp
+++ b/lib/Target/ARM/ARMInstrInfo.cpp
@@ -278,8 +278,8 @@ ARMInstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
for (unsigned j = 0; j < 2; ++j) {
// Look at the two new MI's in reverse order.
MachineInstr *NewMI = NewMIs[j];
- MachineOperand *NMO = NewMI->findRegisterUseOperand(Reg);
- if (!NMO)
+ int NIdx = NewMI->findRegisterUseOperand(Reg);
+ if (NIdx != -1)
continue;
LV.addVirtualRegisterKilled(Reg, NewMI);
if (VI.removeKill(MI))