[lld] r265939 - Remove initializer that are always set by the constructor.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 06:47:35 PDT 2016


Author: rafael
Date: Mon Apr 11 08:47:35 2016
New Revision: 265939

URL: http://llvm.org/viewvc/llvm-project?rev=265939&view=rev
Log:
Remove initializer that are always set by the constructor.

Modified:
    lld/trunk/ELF/OutputSections.h

Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=265939&r1=265938&r2=265939&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon Apr 11 08:47:35 2016
@@ -176,11 +176,11 @@ template <class ELFT> struct DynamicRelo
   typedef typename ELFT::uint uintX_t;
   uint32_t Type;
 
-  SymbolBody *Sym = nullptr;
-  OutputSectionBase<ELFT> *OffsetSec = nullptr;
-  uintX_t OffsetInSec = 0;
-  bool UseSymVA = false;
-  uintX_t Addend = 0;
+  SymbolBody *Sym;
+  OutputSectionBase<ELFT> *OffsetSec;
+  uintX_t OffsetInSec;
+  bool UseSymVA;
+  uintX_t Addend;
 
   DynamicReloc(uint32_t Type, OutputSectionBase<ELFT> *OffsetSec,
                uintX_t OffsetInSec, bool UseSymVA, SymbolBody *Sym,




More information about the llvm-commits mailing list