diff options
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp index e94751ca922..abca33a49bd 100644 --- a/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp +++ b/llvm/lib/Target/Mips/MipsSEFrameLowering.cpp @@ -86,10 +86,10 @@ ExpandPseudo::ExpandPseudo(MachineFunction &MF_) bool ExpandPseudo::expand() { bool Expanded = false; - for (MachineFunction::iterator BB = MF.begin(), BBEnd = MF.end(); - BB != BBEnd; ++BB) - for (Iter I = BB->begin(), End = BB->end(); I != End;) - Expanded |= expandInstr(*BB, I++); + for (auto &MBB : MF) { + for (Iter I = MBB.begin(), End = MBB.end(); I != End;) + Expanded |= expandInstr(MBB, I++); + } return Expanded; } |