summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-05-19 13:32:19 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-05-19 13:32:19 +0000
commitf4baef0c8814f4f895748a1a5da67293594c9c7d (patch)
treee0e39108494da0b0068eb7432e84819f53204997 /llvm/lib/Support
parent356aa46de6d6438468f684cf8363b892e9810168 (diff)
downloadbcm5719-llvm-f4baef0c8814f4f895748a1a5da67293594c9c7d.tar.gz
bcm5719-llvm-f4baef0c8814f4f895748a1a5da67293594c9c7d.zip
Rangify for loop in Cleanup(), NFC.
llvm-svn: 237695
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index 26c3c6e111a..6006499f4da 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -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);
}
OpenPOWER on IntegriCloud