diff options
-rw-r--r-- | llvm/lib/CodeGen/ExpandISelPseudos.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ExpandISelPseudos.cpp b/llvm/lib/CodeGen/ExpandISelPseudos.cpp index 37cbba95f11..0ec79c2e69f 100644 --- a/llvm/lib/CodeGen/ExpandISelPseudos.cpp +++ b/llvm/lib/CodeGen/ExpandISelPseudos.cpp @@ -53,12 +53,12 @@ bool ExpandISelPseudos::runOnMachineFunction(MachineFunction &MF) { MachineBasicBlock *MBB = &*I; for (MachineBasicBlock::iterator MBBI = MBB->begin(), MBBE = MBB->end(); MBBI != MBBE; ) { - MachineInstr *MI = MBBI++; + MachineInstr &MI = *MBBI++; // If MI is a pseudo, expand it. - if (MI->usesCustomInsertionHook()) { + 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; |