Skip to content

Commit f4b9dab

Browse files
committed
cleanup
1 parent db005aa commit f4b9dab

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

compiler/lib/code.ml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -857,24 +857,15 @@ let invariant { blocks; start; _ } =
857857
assert (not (Var.ISet.mem defs x));
858858
Var.ISet.add defs x)
859859
in
860-
let check_constant = function
861-
| NativeInt _ | Int32 _ -> ()
862-
| String _ | NativeString _ | Float _ | Float_array _ | Int _ | Int64 _
863-
| Tuple (_, _, _) -> ()
864-
in
865-
let check_prim_arg = function
866-
| Pc c -> check_constant c
867-
| Pv _ -> ()
868-
in
869860
let check_expr = function
870861
| Apply _ -> ()
871862
| Block (_, _, _, _) -> ()
872863
| Field (_, _, _) -> ()
873864
| Closure (l, cont) ->
874865
List.iter l ~f:define;
875866
check_cont cont
876-
| Constant c -> check_constant c
877-
| Prim (_, args) -> List.iter ~f:check_prim_arg args
867+
| Constant _ -> ()
868+
| Prim (_, _) -> ()
878869
| Special _ -> ()
879870
in
880871
let check_instr i =

0 commit comments

Comments
 (0)