File tree 1 file changed +7
-9
lines changed 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -774,8 +774,7 @@ let primitive_name state i =
774
774
775
775
let access_global g i =
776
776
match g.vars.(i) with
777
- | Some x ->
778
- x
777
+ | Some x -> x
779
778
| None ->
780
779
g.is_const.(i) < - true ;
781
780
let x = Var. fresh () in
@@ -820,11 +819,11 @@ let get_global state instrs i loc =
820
819
if debug_parser () then Format. printf " %a = CONST(%d)@." Var. print x i;
821
820
g.vars.(i) < - Some x;
822
821
(match g.named_value.(i) with
823
- | None -> ()
824
- | Some name ->
825
- match Shape. get_shape ~name with
826
- | None -> ()
827
- | Some shape -> Shape. assign x shape);
822
+ | None -> ()
823
+ | Some name -> (
824
+ match Shape. get_shape ~name with
825
+ | None -> ()
826
+ | Some shape -> Shape. assign x shape) );
828
827
829
828
x, state, instrs)
830
829
@@ -3000,8 +2999,7 @@ module Reloc = struct
3000
2999
let constants = constants t in
3001
3000
let globals = make_globals (Array. length constants) constants primitives in
3002
3001
resize_globals globals t.pos;
3003
- Hashtbl. iter (fun name i ->
3004
- globals.named_value.(i) < - Some name) t.names;
3002
+ Hashtbl. iter (fun name i -> globals.named_value.(i) < - Some name) t.names;
3005
3003
(* Initialize module override mechanism *)
3006
3004
List. iter override_global ~f: (fun (name , v ) ->
3007
3005
try
You can’t perform that action at this time.
0 commit comments