Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interpreter/valid/valid.ml
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ let check_func (c : context) (f : func) =

let is_const (c : context) (e : instr) =
match e.it with
| Const _ -> true
| Binary (Values.I32 I32Op.(Add | Sub | Mul)) -> true
| Const _
| Binary (Values.I32 I32Op.(Add | Sub | Mul))
| Binary (Values.I64 I64Op.(Add | Sub | Mul)) -> true
| GlobalGet x -> let GlobalType (_, mut) = global c x in mut = Immutable
| _ -> false
Expand Down