summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-04-05 03:20:03 +0000
committerRui Ueyama <ruiu@google.com>2017-04-05 03:20:03 +0000
commitcba41013ef6e6f27dcd32092fc0f79557ce124e4 (patch)
treec7a8cf584acb065b617ca5f1fe673071efce64a8 /lld/ELF/LinkerScript.cpp
parentd7c5400f9e26db8baa4b7c2665adeb361eb637e3 (diff)
downloadbcm5719-llvm-cba41013ef6e6f27dcd32092fc0f79557ce124e4.tar.gz
bcm5719-llvm-cba41013ef6e6f27dcd32092fc0f79557ce124e4.zip
Add parentheses around `&`.
llvm-svn: 299503
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index a39e8431972..02eb5d81d25 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -643,7 +643,7 @@ void LinkerScript::assignOffsets(OutputSectionCommand *Cmd) {
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) {
OpenPOWER on IntegriCloud