aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-09-18 16:10:39 -0700
committerFangrui Song <i@maskray.me>2020-09-18 16:10:39 -0700
commit51b75b87dbbed24b9c0a809f7e4d22b31923630d (patch)
treeb7d4e4d461ffb29cfc677c683c9152dcf45ad19f /lld
parent82827244e9bbc2804afd9070158c567ac89f0540 (diff)
downloadllvm-51b75b87dbbed24b9c0a809f7e4d22b31923630d.zip
llvm-51b75b87dbbed24b9c0a809f7e4d22b31923630d.tar.gz
llvm-51b75b87dbbed24b9c0a809f7e4d22b31923630d.tar.bz2
[lld][WebAssembly] Fix -Wunused-variable after D87663
Diffstat (limited to 'lld')
-rw-r--r--lld/wasm/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp
index 8d5b980..b7adec7 100644
--- a/lld/wasm/Writer.cpp
+++ b/lld/wasm/Writer.cpp
@@ -473,7 +473,7 @@ void Writer::populateTargetFeatures() {
}
}
for (const Symbol *sym : out.exportSec->exportedSymbols) {
- if (auto *global = dyn_cast<GlobalSymbol>(sym)) {
+ if (isa<GlobalSymbol>(sym)) {
error(Twine("mutable global exported but 'mutable-globals' feature "
"not present in inputs: `") +
toString(*sym) + "`. Use --no-check-features to suppress.");