forked from OSchip/llvm-project
[lld][WebAssembly] Fix -Wunused-variable after D87663
This commit is contained in:
parent
82827244e9
commit
51b75b87db
|
@ -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.");
|
||||||
|
|
Loading…
Reference in New Issue