Skip to content

Commit

Permalink
[lld][WebAssembly] Fix -Wunused-variable after D87663
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Sep 18, 2020
1 parent 8282724 commit 51b75b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/wasm/Writer.cpp
Expand Up @@ -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.");
Expand Down

0 comments on commit 51b75b8

Please sign in to comment.