[lld][WebAssembly] Fix -Wunused-variable after D87663

This commit is contained in:
Fangrui Song 2020-09-18 16:10:39 -07:00
parent 82827244e9
commit 51b75b87db
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ void Writer::populateTargetFeatures() {
} }
} }
for (const Symbol *sym : out.exportSec->exportedSymbols) { 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 " error(Twine("mutable global exported but 'mutable-globals' feature "
"not present in inputs: `") + "not present in inputs: `") +
toString(*sym) + "`. Use --no-check-features to suppress."); toString(*sym) + "`. Use --no-check-features to suppress.");