Use auto instead of the long type name. NFC.
authorSteven Wu <stevenwu@apple.com>
Thu, 7 May 2015 19:56:23 +0000 (19:56 +0000)
committerSteven Wu <stevenwu@apple.com>
Thu, 7 May 2015 19:56:23 +0000 (19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Signals.inc

index 26fd5c3f4e69b0575789ddb9bca0ad7a1378dff1..bfe2a3a380edcb7efe4c38e5b88d41894105a9fb 100644 (file)
@@ -206,8 +206,7 @@ static RETSIGTYPE SignalHandler(int Sig) {
 
   // Otherwise if it is a fault (like SEGV) run any handler.
   if (CallBacksToRun.isConstructed()) {
-    std::vector<std::pair<void (*)(void *), void *>>& CallBacksToRunRef =
-        *CallBacksToRun;
+    auto &CallBacksToRunRef = *CallBacksToRun;
     for (unsigned i = 0, e = CallBacksToRun->size(); i != e; ++i)
       CallBacksToRunRef[i].first(CallBacksToRunRef[i].second);
   }