From: Sanjay Patel Date: Tue, 5 May 2015 21:20:52 +0000 (+0000) Subject: use range-based for-loop; NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b2c61b2e574c62db99b0dd0f62ea49578328cde;p=oota-llvm.git use range-based for-loop; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236544 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86VZeroUpper.cpp b/lib/Target/X86/X86VZeroUpper.cpp index 99ba4c02a46..6925b272b4a 100644 --- a/lib/Target/X86/X86VZeroUpper.cpp +++ b/lib/Target/X86/X86VZeroUpper.cpp @@ -281,8 +281,8 @@ bool VZeroUpperInserter::runOnMachineFunction(MachineFunction &MF) { // Process all blocks. This will compute block exit states, record the first // unguarded call in each block, and add successors of dirty blocks to the // DirtySuccessors list. - for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) - processBasicBlock(*I); + for (MachineBasicBlock &MBB : MF) + processBasicBlock(MBB); // If any YMM regs are live in to this function, add the entry block to the // DirtySuccessors list