File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -857,24 +857,15 @@ let invariant { blocks; start; _ } =
857
857
assert (not (Var.ISet. mem defs x));
858
858
Var.ISet. add defs x)
859
859
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
869
860
let check_expr = function
870
861
| Apply _ -> ()
871
862
| Block (_ , _ , _ , _ ) -> ()
872
863
| Field (_ , _ , _ ) -> ()
873
864
| Closure (l , cont ) ->
874
865
List. iter l ~f: define;
875
866
check_cont cont
876
- | Constant c -> check_constant c
877
- | Prim (_ , args ) -> List. iter ~f: check_prim_arg args
867
+ | Constant _ -> ()
868
+ | Prim (_ , _ ) -> ()
878
869
| Special _ -> ()
879
870
in
880
871
let check_instr i =
You can’t perform that action at this time.
0 commit comments