summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 20:01:33 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 20:01:33 +0000
commitfd8cc23220d25dfe6956470da8bd63d26649c428 (patch)
tree121ce8d85170b862228e2a15d45da0bc7ad8b68b /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
parent982224cfb8de39337e977219b3571c5a87aca4ce (diff)
downloadbcm5719-llvm-fd8cc23220d25dfe6956470da8bd63d26649c428.tar.gz
bcm5719-llvm-fd8cc23220d25dfe6956470da8bd63d26649c428.zip
CodeGen: Change MachineInstr to use MachineInstr&, NFC
Change MachineInstr API to prefer MachineInstr& over MachineInstr* whenever the parameter is expected to be non-null. Slowly inching toward being able to fix PR26753. llvm-svn: 262149
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 77aeb2d3d9f..9fabcd2f8f9 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1531,7 +1531,7 @@ bool ARMBaseInstrInfo::produceSameValue(const MachineInstr *MI0,
return true;
}
- return MI0->isIdenticalTo(MI1, MachineInstr::IgnoreVRegDefs);
+ return MI0->isIdenticalTo(*MI1, MachineInstr::IgnoreVRegDefs);
}
/// areLoadsFromSameBasePtr - This is used by the pre-regalloc scheduler to
OpenPOWER on IntegriCloud