[lld] r261941 - ELF: Add '*' to auto.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 15:58:22 PST 2016


Author: ruiu
Date: Thu Feb 25 17:58:21 2016
New Revision: 261941

URL: http://llvm.org/viewvc/llvm-project?rev=261941&view=rev
Log:
ELF: Add '*' to auto.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=261941&r1=261940&r2=261941&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Feb 25 17:58:21 2016
@@ -1492,7 +1492,7 @@ template <class ELFT> void Writer<ELFT>:
     *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);
 }




More information about the llvm-commits mailing list