diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-06-30 22:52:52 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-06-30 22:52:52 +0000 |
commit | e4f5e4f4d1c47f996bb22b21989c3cc32fd9a0cd (patch) | |
tree | f149f6737d4fe96604d1e16648f1161f5b8dcb35 /llvm/lib/CodeGen/ExpandISelPseudos.cpp | |
parent | 9743af6e31eb0699ded017ac1f957a4a6fe78bf6 (diff) | |
download | bcm5719-llvm-e4f5e4f4d1c47f996bb22b21989c3cc32fd9a0cd.tar.gz bcm5719-llvm-e4f5e4f4d1c47f996bb22b21989c3cc32fd9a0cd.zip |
CodeGen: Use MachineInstr& in TargetLowering, NFC
This is a mechanical change to make TargetLowering API take MachineInstr&
(instead of MachineInstr*), since the argument is expected to be a valid
MachineInstr. In one case, changed a parameter from MachineInstr* to
MachineBasicBlock::iterator, since it was used as an insertion point.
As a side effect, this removes a bunch of MachineInstr* to
MachineBasicBlock::iterator implicit conversions, a necessary step
toward fixing PR26753.
llvm-svn: 274287
Diffstat (limited to 'llvm/lib/CodeGen/ExpandISelPseudos.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ExpandISelPseudos.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ExpandISelPseudos.cpp b/llvm/lib/CodeGen/ExpandISelPseudos.cpp index 90ddac94f93..37cbba95f11 100644 --- a/llvm/lib/CodeGen/ExpandISelPseudos.cpp +++ b/llvm/lib/CodeGen/ExpandISelPseudos.cpp @@ -58,8 +58,7 @@ bool ExpandISelPseudos::runOnMachineFunction(MachineFunction &MF) { // If MI is a pseudo, expand it. if (MI->usesCustomInsertionHook()) { Changed = true; - MachineBasicBlock *NewMBB = - TLI->EmitInstrWithCustomInserter(MI, MBB); + MachineBasicBlock *NewMBB = TLI->EmitInstrWithCustomInserter(*MI, MBB); // The expansion may involve new basic blocks. if (NewMBB != MBB) { MBB = NewMBB; |