ELF: Add '*' to auto.
authorRui Ueyama <ruiu@google.com>
Thu, 25 Feb 2016 23:58:21 +0000 (23:58 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 25 Feb 2016 23:58:21 +0000 (23:58 +0000)
llvm-svn: 261941

lld/ELF/Writer.cpp

index a87770ec25e41ea7f41b997702584cdc565f2665..9dad3ab83f932872d349a97b28df65a78b39beaa 100644 (file)
@@ -1492,7 +1492,7 @@ template <class ELFT> void Writer<ELFT>::writeHeader() {
     *HBuf++ = P.H;
 
   // Write the section header table. Note that the first table entry is null.
-  auto SHdrs = reinterpret_cast<Elf_Shdr *>(Buf + EHdr->e_shoff);
+  auto *SHdrs = reinterpret_cast<Elf_Shdr *>(Buf + EHdr->e_shoff);
   for (OutputSectionBase<ELFT> *Sec : getSections())
     Sec->writeHeaderTo(++SHdrs);
 }