use range-based for-loop; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 5 May 2015 21:20:52 +0000 (21:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 5 May 2015 21:20:52 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236544 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86VZeroUpper.cpp

index 99ba4c02a46d5ca77c217be6e95b1fbbadd3696a..6925b272b4a5bae8f80c7b3174a24bd770b22a25 100644 (file)
@@ -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