[lld] r272265 - [ELF] - Removed excessive variable. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 08:17:29 PDT 2016
Author: grimar
Date: Thu Jun 9 10:17:29 2016
New Revision: 272265
URL: http://llvm.org/viewvc/llvm-project?rev=272265&view=rev
Log:
[ELF] - Removed excessive variable. NFC.
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=272265&r1=272264&r2=272265&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Thu Jun 9 10:17:29 2016
@@ -496,8 +496,7 @@ template <class ELFT, class RelTy>
static void scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) {
typedef typename ELFT::uint uintX_t;
- uintX_t Flags = C.getSectionHdr()->sh_flags;
- bool IsWrite = Flags & SHF_WRITE;
+ bool IsWrite = C.getSectionHdr()->sh_flags & SHF_WRITE;
auto AddDyn = [=](const DynamicReloc<ELFT> &Reloc) {
Out<ELFT>::RelaDyn->addReloc(Reloc);
More information about the llvm-commits
mailing list