diff options
-rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index b54e2bba9af..0efc57102b6 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1102,7 +1102,7 @@ template <class ELFT> void Writer<ELFT>::addReservedSymbols() { if (!isOutputDynamic()) Symtab.addIgnored("__tls_get_addr"); - auto Define = [this](StringRef S, ElfSym<ELFT>::SymPair &Sym) { + auto Define = [this](StringRef S, typename ElfSym<ELFT>::SymPair &Sym) { Sym.first = Symtab.addIgnored(S, STV_DEFAULT); // The name without the underscore is not a reserved name, |