[lld] r287607 - Remove redundant assignment.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 17:36:19 PST 2016
Author: ruiu
Date: Mon Nov 21 19:36:19 2016
New Revision: 287607
URL: http://llvm.org/viewvc/llvm-project?rev=287607&view=rev
Log:
Remove redundant assignment.
Modified:
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=287607&r1=287606&r2=287607&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Mon Nov 21 19:36:19 2016
@@ -263,9 +263,7 @@ static size_t getHashSize() {
template <class ELFT>
BuildIdSection<ELFT>::BuildIdSection()
: SyntheticSection<ELFT>(SHF_ALLOC, SHT_NOTE, 1, ".note.gnu.build-id"),
- HashSize(getHashSize()) {
- this->Live = true;
-}
+ HashSize(getHashSize()) {}
template <class ELFT> void BuildIdSection<ELFT>::writeTo(uint8_t *Buf) {
const endianness E = ELFT::TargetEndianness;
More information about the llvm-commits
mailing list