We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c4f381 commit da162d8Copy full SHA for da162d8
interpreter/valid/valid.ml
@@ -381,8 +381,8 @@ let check_func (c : context) (f : func) =
381
382
let is_const (c : context) (e : instr) =
383
match e.it with
384
- | Const _ -> true
385
- | Binary (Values.I32 I32Op.(Add | Sub | Mul)) -> true
+ | Const _
+ | Binary (Values.I32 I32Op.(Add | Sub | Mul))
386
| Binary (Values.I64 I64Op.(Add | Sub | Mul)) -> true
387
| GlobalGet x -> let GlobalType (_, mut) = global c x in mut = Immutable
388
| _ -> false
0 commit comments