Skip to content

Commit ca5829f

Browse files
committed
WIP
1 parent 706ac5a commit ca5829f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

compiler/lib/parse_bytecode.ml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,7 @@ let primitive_name state i =
774774

775775
let access_global g i =
776776
match g.vars.(i) with
777-
| Some x ->
778-
x
777+
| Some x -> x
779778
| None ->
780779
g.is_const.(i) <- true;
781780
let x = Var.fresh () in
@@ -820,11 +819,11 @@ let get_global state instrs i loc =
820819
if debug_parser () then Format.printf "%a = CONST(%d)@." Var.print x i;
821820
g.vars.(i) <- Some x;
822821
(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));
828827

829828
x, state, instrs)
830829

@@ -3000,8 +2999,7 @@ module Reloc = struct
30002999
let constants = constants t in
30013000
let globals = make_globals (Array.length constants) constants primitives in
30023001
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;
30053003
(* Initialize module override mechanism *)
30063004
List.iter override_global ~f:(fun (name, v) ->
30073005
try

0 commit comments

Comments
 (0)