[lld] r293390 - Fix -Werror build.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 28 11:07:34 PST 2017
Author: rafael
Date: Sat Jan 28 13:07:33 2017
New Revision: 293390
URL: http://llvm.org/viewvc/llvm-project?rev=293390&view=rev
Log:
Fix -Werror build.
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=293390&r1=293389&r2=293390&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Sat Jan 28 13:07:33 2017
@@ -756,8 +756,8 @@ template <class ELFT> void Writer<ELFT>:
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);
More information about the llvm-commits
mailing list