summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-06-09 15:17:29 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-06-09 15:17:29 +0000
commitdb0168d1d669e0a21f889a67a86e883ec60fd701 (patch)
tree114b4f737c336a2409ce1dd1d2b15878b525a36b
parent24f1f62dca733db381ea6e018e3d92cb32432ae6 (diff)
downloadbcm5719-llvm-db0168d1d669e0a21f889a67a86e883ec60fd701.tar.gz
bcm5719-llvm-db0168d1d669e0a21f889a67a86e883ec60fd701.zip
[ELF] - Removed excessive variable. NFC.
llvm-svn: 272265
-rw-r--r--lld/ELF/Relocations.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 64ac84802dd..79e900b5596 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -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);
OpenPOWER on IntegriCloud