Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit e66f532

Browse files
authored
Fix call_indirect immediates
1 parent 1e05d9b commit e66f532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/reference-types/Overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ New/extended instructions:
114114
- and `t' <: t`
115115

116116
* The `call_indirect` instruction takes a table index as immediate.
117-
- `call_indirect (type $t) $x : [t1* i32] -> [t2*]`
117+
- `call_indirect $x (type $t) : [t1* i32] -> [t2*]`
118118
- iff `$t = [t1*] -> [t2*]`
119119
- and `$x : table t'`
120120
- and `t' <: funcref`
@@ -260,7 +260,7 @@ Addition:
260260
Note:
261261

262262
* Can decompose `call_indirect` (assuming multi-value proposal):
263-
- `(call_indirect $t $x)` reduces to `(table.get $x) (cast $t anyref (ref $t) (then (call_ref (ref $t))) (else (unreachable)))`
263+
- `(call_indirect $x (type $t))` reduces to `(table.get $x) (cast $t anyref (ref $t) (then (call_ref (ref $t))) (else (unreachable)))`
264264

265265

266266
### GC Types

0 commit comments

Comments
 (0)