[lld] r299503 - Add parentheses around `&`.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 4 20:20:03 PDT 2017
Author: ruiu
Date: Tue Apr 4 22:20:03 2017
New Revision: 299503
URL: http://llvm.org/viewvc/llvm-project?rev=299503&view=rev
Log:
Add parentheses around `&`.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=299503&r1=299502&r2=299503&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Apr 4 22:20:03 2017
@@ -643,7 +643,7 @@ void LinkerScript::assignOffsets(OutputS
if (!Sec)
return;
- if (Cmd->AddrExpr && Sec->Flags & SHF_ALLOC)
+ if (Cmd->AddrExpr && (Sec->Flags & SHF_ALLOC))
setDot(Cmd->AddrExpr, Cmd->Location);
if (Cmd->LMAExpr) {
More information about the llvm-commits
mailing list