OSDN Git Service

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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237695 91177308-0d34-0410-b5e6-96231b3b80d8

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);
 }