Fix -Werror build.

llvm-svn: 293390
This commit is contained in:
Rafael Espindola 2017-01-28 19:07:33 +00:00
parent ac2a633467
commit 64e5556e9f
1 changed files with 2 additions and 2 deletions

View File

@ -756,8 +756,8 @@ template <class ELFT> void Writer<ELFT>::addReservedSymbols() {
ElfSym<ELFT>::EhdrStart =
addOptionalSynthetic<ELFT>("__ehdr_start", Out<ELFT>::ProgramHeaders, 0);
auto Define = [this](StringRef S, DefinedSynthetic *&Sym1,
DefinedSynthetic *&Sym2) {
auto Define = [](StringRef S, DefinedSynthetic *&Sym1,
DefinedSynthetic *&Sym2) {
Sym1 = addOptionalSynthetic<ELFT>(S, nullptr, 0, STV_DEFAULT);
assert(S.startswith("_"));
S = S.substr(1);