diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-01 01:51:32 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-01 01:51:32 +0000 |
commit | d26fdc83c9f620992b579adbebab45716fdfc001 (patch) | |
tree | fad6c2ecbf1fb1aec9b7a1565873f56b73c94647 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 241f34cde81c46167ac2e10b5bffb6857a3f881b (diff) | |
download | bcm5719-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/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 54fcf41a438..e2d0c4b7e85 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -745,7 +745,7 @@ MachineBasicBlock *MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, continue; unsigned Reg = OI->getReg(); if (TargetRegisterInfo::isPhysicalRegister(Reg) || - LV->getVarInfo(Reg).removeKill(MI)) { + LV->getVarInfo(Reg).removeKill(*MI)) { KilledRegs.push_back(Reg); DEBUG(dbgs() << "Removing terminator kill: " << *MI); OI->setIsKill(false); |