[llvm] r237695 - Rangify for loop in Cleanup(), NFC.
Yaron Keren
yaron.keren at gmail.com
Tue May 19 06:32:19 PDT 2015
Author: yrnkrn
Date: Tue May 19 08:32:19 2015
New Revision: 237695
URL: http://llvm.org/viewvc/llvm-project?rev=237695&view=rev
Log:
Rangify for loop in Cleanup(), NFC.
Modified:
llvm/trunk/lib/Support/Windows/Signals.inc
Modified: llvm/trunk/lib/Support/Windows/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Signals.inc?rev=237695&r1=237694&r2=237695&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Tue May 19 08:32:19 2015
@@ -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);
}
More information about the llvm-commits
mailing list