forked from OSchip/llvm-project
[C++11,ARM64] Range based for loops in pseudo expansion.
No functional change intended. llvm-svn: 205441
This commit is contained in:
parent
673825ebac
commit
f39d752b03
|
@ -726,9 +726,8 @@ bool ARM64ExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
|
||||||
TII = static_cast<const ARM64InstrInfo *>(MF.getTarget().getInstrInfo());
|
TII = static_cast<const ARM64InstrInfo *>(MF.getTarget().getInstrInfo());
|
||||||
|
|
||||||
bool Modified = false;
|
bool Modified = false;
|
||||||
for (MachineFunction::iterator MFI = MF.begin(), E = MF.end(); MFI != E;
|
for (auto &MBB : MF)
|
||||||
++MFI)
|
Modified |= expandMBB(MBB);
|
||||||
Modified |= expandMBB(*MFI);
|
|
||||||
return Modified;
|
return Modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue