[lld] r273155 - [ELF] - Removed excessive reference from pointer arguments. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 20 06:30:37 PDT 2016
Author: grimar
Date: Mon Jun 20 08:30:37 2016
New Revision: 273155
URL: http://llvm.org/viewvc/llvm-project?rev=273155&view=rev
Log:
[ELF] - Removed excessive reference from pointer arguments. NFC.
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=273155&r1=273154&r2=273155&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Jun 20 08:30:37 2016
@@ -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)
More information about the llvm-commits
mailing list