[llvm] [MC][WebAssembly] Fix importing tables with limits (PR #172992)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 19 11:50:04 PST 2025


================
@@ -5,11 +5,18 @@
 .globl __indirect_function_table
 .tabletype __indirect_function_table, funcref
 
+.globl __table_with_limits
+.import_module __table_with_limits, env
+.import_name __table_with_limits, __table_with_limits
+.tabletype __table_with_limits, funcref, 2, 10
+
 .globl _start
 _start:
   .functype _start () -> ()
   i32.const 1
   call_indirect __indirect_function_table, () -> ()
+  i32.const 1
+  call_indirect __table_with_limits, () -> ()
----------------
daxpedda wrote:

Done.

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


More information about the llvm-commits mailing list