diff options
-rw-r--r-- | lld/ELF/Writer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 9a2d158d827..6e20305b487 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1268,8 +1268,7 @@ static uint16_t getELFType() { // to each section. This function fixes some predefined absolute // symbol values that depend on section address and size. template <class ELFT> void Writer<ELFT>::fixAbsoluteSymbols() { - auto Set = [](DefinedRegular<ELFT> *&S1, DefinedRegular<ELFT> *&S2, - uintX_t V) { + auto Set = [](DefinedRegular<ELFT> *S1, DefinedRegular<ELFT> *S2, uintX_t V) { if (S1) S1->Value = V; if (S2) |