[PATCH] D87537: [lld][WebAssembly] Error on import/export of mutable global without `mutable-globals` feature

Sam Clegg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 13:20:08 PDT 2020


sbc100 marked an inline comment as done.
sbc100 added inline comments.


================
Comment at: lld/wasm/Writer.cpp:478
+                  toString(*sym) + "`. Use --no-check-features to suppress.");
+          else if (sym->isExported())
+            error(Twine("mutable global exported but 'mutable-globals' feature "
----------------
tlively wrote:
> could this `if (sym->isExported())` be turned into an `assert(sym->isExported())`?
I don't think so.  What about regular internal globals that are neither imported nor exported?  Unless I'm missing something?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87537/new/

https://reviews.llvm.org/D87537



More information about the cfe-commits mailing list