File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1012,8 +1012,9 @@ let is_const (c : context) (e : instr) =
1012
1012
| Const _ | VecConst _
1013
1013
| Binary (Value. I32 I32Op. (Add | Sub | Mul ))
1014
1014
| Binary (Value. I64 I64Op. (Add | Sub | Mul ))
1015
- | RefNull _ | RefFunc _
1016
- | RefI31 | StructNew _ | ArrayNew _ | ArrayNewFixed _ -> true
1015
+ | RefNull _ | RefFunc _ | RefI31
1016
+ | StructNew _ | ArrayNew _ | ArrayNewFixed _
1017
+ | ExternConvert _ -> true
1017
1018
| GlobalGet x -> let GlobalT (mut, _t) = global c x in mut = Cons
1018
1019
| _ -> false
1019
1020
Original file line number Diff line number Diff line change 3
3
(type $st (struct ))
4
4
(type $at (array i8 ))
5
5
6
+ (global externref (extern.convert_any (ref.null any)))
7
+ (global anyref (any.convert_extern (ref.null extern )))
8
+
6
9
(table 10 anyref )
7
10
8
11
(elem declare func $f )
You can’t perform that action at this time.
0 commit comments