[lld] [lld][WebAssembly] Fix for --import-table when combined with reference types (PR #97451)

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 10:53:42 PDT 2024


================
@@ -724,8 +724,11 @@ TableSymbol *SymbolTable::resolveIndirectFunctionTable(bool required) {
   }
 
   if (config->importTable) {
-    if (existing)
+    if (existing) {
+      existing->importModule = defaultModule;
----------------
aheejin wrote:

Is it possible to import a table from a non-default module? If so, how do we do it?

https://github.com/llvm/llvm-project/pull/97451


More information about the llvm-commits mailing list