summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-12 01:39:01 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-12 01:39:01 +0000
commit4565ec0c1d85d7294659973761551a536835cf6d (patch)
tree809c0f6a8c4c87a0f103e34a5682767f28b973d1 /llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
parentef4b4491240b7991c20b6cb0d9096021f6be998b (diff)
downloadbcm5719-llvm-4565ec0c1d85d7294659973761551a536835cf6d.tar.gz
bcm5719-llvm-4565ec0c1d85d7294659973761551a536835cf6d.zip
SystemZ: Avoid implicit iterator conversions, NFC
Avoid implicit conversions from MachineInstrBundleIterator to MachineInstr* in the SystemZ backend, mainly by preferring MachineInstr& over MachineInstr* and using range-based for loops. llvm-svn: 275137
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp b/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
index ff81e6b0a49..2cdf2f9bf99 100644
--- a/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
@@ -95,9 +95,9 @@ bool SystemZLDCleanup::VisitNode(MachineDomTreeNode *Node,
switch (I->getOpcode()) {
case SystemZ::TLS_LDCALL:
if (TLSBaseAddrReg)
- I = ReplaceTLSCall(I, TLSBaseAddrReg);
+ I = ReplaceTLSCall(&*I, TLSBaseAddrReg);
else
- I = SetRegister(I, &TLSBaseAddrReg);
+ I = SetRegister(&*I, &TLSBaseAddrReg);
Changed = true;
break;
default:
OpenPOWER on IntegriCloud