summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-01 01:51:32 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-01 01:51:32 +0000
commitd26fdc83c9f620992b579adbebab45716fdfc001 (patch)
treefad6c2ecbf1fb1aec9b7a1565873f56b73c94647 /llvm/lib/Target/SystemZ
parent241f34cde81c46167ac2e10b5bffb6857a3f881b (diff)
downloadbcm5719-llvm-d26fdc83c9f620992b579adbebab45716fdfc001.tar.gz
bcm5719-llvm-d26fdc83c9f620992b579adbebab45716fdfc001.zip
CodeGen: Use MachineInstr& in LiveVariables API, NFC
Change all the methods in LiveVariables that expect non-null MachineInstr* to take MachineInstr& and update the call sites. This clarifies the API, and designs away a class of iterator to pointer implicit conversions. llvm-svn: 274319
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
index ed11dcfab4f..24217800e5e 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -760,7 +760,7 @@ static MachineInstr *finishConvertToThreeAddress(MachineInstr *OldMI,
for (unsigned I = 1; I < NumOps; ++I) {
MachineOperand &Op = OldMI->getOperand(I);
if (Op.isReg() && Op.isKill())
- LV->replaceKillInstruction(Op.getReg(), OldMI, NewMI);
+ LV->replaceKillInstruction(Op.getReg(), *OldMI, *NewMI);
}
}
transferDeadCC(OldMI, NewMI);
OpenPOWER on IntegriCloud