From f1ed587ebfba9498c72ecdb8e6d1af927dfe70a9 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Tue, 19 May 2015 13:32:19 +0000 Subject: [PATCH] Rangify for loop in Cleanup(), NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237695 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Signals.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index 26c3c6e111a..6006499f4da 100644 --- a/lib/Support/Windows/Signals.inc +++ b/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); } -- 2.11.0