Try to unbreak Windows build after r188022
authorAlexey Samsonov <samsonov@google.com>
Fri, 9 Aug 2013 07:34:06 +0000 (07:34 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 9 Aug 2013 07:34:06 +0000 (07:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188057 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index 39a8c981c5901afd58e3f61db513e408ebf9a6ec..a6774c11503029f4660ebc15b627e63f060033ea 100644 (file)
@@ -565,7 +565,7 @@ std::pair<const typename ELFFile<ELFT>::Elf_Shdr *,
           const typename ELFFile<ELFT>::Elf_Sym *>
 ELFFile<ELFT>::getRelocationSymbol(const Elf_Shdr *Sec, const RelT *Rel) const {
   if (!Sec->sh_link)
-    return std::pair<const Elf_Shdr *, const Elf_Sym *>(0, 0);
+    return std::make_pair((const Elf_Shdr *)0, (const Elf_Sym *)0);
   const Elf_Shdr *SymTable = getSection(Sec->sh_link);
   return std::make_pair(
       SymTable, getEntry<Elf_Sym>(SymTable, Rel->getSymbol(isMips64EL())));