Use auto instead of the long type name. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Steven Wu 2015-05-07 19:56:23 +00:00
parent d887b7ef2f
commit 82b39321e5

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