Use std::make_pair rather than brace initialization.
authorMatt Morehouse <mascasa@google.com>
Thu, 4 Oct 2018 00:35:24 +0000 (00:35 +0000)
committerMatt Morehouse <mascasa@google.com>
Thu, 4 Oct 2018 00:35:24 +0000 (00:35 +0000)
r343732 broke the Windows bot.  Seems like the compiler on that bot
doesn't like brace initialization.

llvm-svn: 343749

lld/ELF/Relocations.cpp

index 8f42340..a902f0f 100644 (file)
@@ -1347,12 +1347,12 @@ std::pair<Thunk *, bool> ThunkCreator::getThunk(Symbol &Sym, RelType Type,
   for (Thunk *T : *ThunkVec)
     if (T->isCompatibleWith(Type) &&
         Target->inBranchRange(Type, Src, T->getThunkTargetSym()->getVA()))
-      return {T, false};
+      return std::make_pair(T, false);
 
   // No existing compatible Thunk in range, create a new one
   Thunk *T = addThunk(Type, Sym);
   ThunkVec->push_back(T);
-  return {T, true};
+  return std::make_pair(T, true);
 }
 
 // Call Fn on every executable InputSection accessed via the linker script