diff options
author | Fangrui Song <i@maskray.me> | 2020-09-18 16:10:39 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-09-18 16:10:39 -0700 |
commit | 51b75b87dbbed24b9c0a809f7e4d22b31923630d (patch) | |
tree | b7d4e4d461ffb29cfc677c683c9152dcf45ad19f /lld | |
parent | 82827244e9bbc2804afd9070158c567ac89f0540 (diff) | |
download | llvm-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.cpp | 2 |
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."); |