mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
CodeGen: Avoid more ilist iterator implicit conversions, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -96,7 +96,7 @@ void ProcessImplicitDefs::processImplicitDef(MachineInstr *MI) {
|
||||
|
||||
// This is a physreg implicit-def.
|
||||
// Look for the first instruction to use or define an alias.
|
||||
MachineBasicBlock::instr_iterator UserMI = MI;
|
||||
MachineBasicBlock::instr_iterator UserMI = MI->getIterator();
|
||||
MachineBasicBlock::instr_iterator UserE = MI->getParent()->instr_end();
|
||||
bool Found = false;
|
||||
for (++UserMI; UserMI != UserE; ++UserMI) {
|
||||
@@ -151,7 +151,7 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &MF) {
|
||||
for (MachineBasicBlock::instr_iterator MBBI = MFI->instr_begin(),
|
||||
MBBE = MFI->instr_end(); MBBI != MBBE; ++MBBI)
|
||||
if (MBBI->isImplicitDef())
|
||||
WorkList.insert(MBBI);
|
||||
WorkList.insert(&*MBBI);
|
||||
|
||||
if (WorkList.empty())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user