[lld] r345139 - Add parenthese around a bitand.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 24 06:44:52 PDT 2018
Author: ruiu
Date: Wed Oct 24 06:44:51 2018
New Revision: 345139
URL: http://llvm.org/viewvc/llvm-project?rev=345139&view=rev
Log:
Add parenthese around a bitand.
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=345139&r1=345138&r2=345139&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Oct 24 06:44:51 2018
@@ -1818,7 +1818,7 @@ static bool needsPtLoad(OutputSection *S
// Don't allocate VA space for TLS NOBITS sections. The PT_TLS PHDR is
// responsible for allocating space for them, not the PT_LOAD that
// contains the TLS initialization image.
- if (Sec->Flags & SHF_TLS && Sec->Type == SHT_NOBITS)
+ if ((Sec->Flags & SHF_TLS) && Sec->Type == SHT_NOBITS)
return false;
return true;
}
More information about the llvm-commits
mailing list