[lld] r255833 - Do not omit * from auto.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 14:36:10 PST 2015


Author: ruiu
Date: Wed Dec 16 16:36:10 2015
New Revision: 255833

URL: http://llvm.org/viewvc/llvm-project?rev=255833&view=rev
Log:
Do not omit * from auto.

We don't do that in other places in the same file.

Modified:
    lld/trunk/ELF/SymbolTable.cpp

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=255833&r1=255832&r2=255833&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Wed Dec 16 16:36:10 2015
@@ -81,16 +81,16 @@ void SymbolTable<ELFT>::addSynthetic(Str
                                      OutputSectionBase<ELFT> &Section,
                                      typename ELFFile<ELFT>::uintX_t Value) {
   typedef typename DefinedSynthetic<ELFT>::Elf_Sym Elf_Sym;
-  auto ESym = new (Alloc) Elf_Sym;
+  auto *ESym = new (Alloc) Elf_Sym;
   memset(ESym, 0, sizeof(Elf_Sym));
   ESym->st_value = Value;
-  auto Sym = new (Alloc) DefinedSynthetic<ELFT>(Name, *ESym, Section);
+  auto *Sym = new (Alloc) DefinedSynthetic<ELFT>(Name, *ESym, Section);
   resolve(Sym);
 }
 
 template <class ELFT>
 SymbolBody *SymbolTable<ELFT>::addIgnored(StringRef Name) {
-  auto Sym = new (Alloc)
+  auto *Sym = new (Alloc)
       DefinedAbsolute<ELFT>(Name, DefinedAbsolute<ELFT>::IgnoreUndef);
   resolve(Sym);
   return Sym;




More information about the llvm-commits mailing list