Rangify for loop in Cleanup(), NFC.
authorYaron Keren <yaron.keren@gmail.com>
Tue, 19 May 2015 13:32:19 +0000 (13:32 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 19 May 2015 13:32:19 +0000 (13:32 +0000)
llvm-svn: 237695

llvm/lib/Support/Windows/Signals.inc

index 26c3c6e..6006499 100644 (file)
@@ -459,8 +459,8 @@ static void Cleanup() {
     }
 
   if (CallBacksToRun)
-    for (unsigned i = 0, e = CallBacksToRun->size(); i != e; ++i)
-      (*CallBacksToRun)[i].first((*CallBacksToRun)[i].second);
+    for (auto &I : *CallBacksToRun)
+      I.first(I.second);
 
   LeaveCriticalSection(&CriticalSection);
 }