Skip to content

Commit 64b469a

Browse files
committed
comment
1 parent 47a706c commit 64b469a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

compiler/lib/generate.ml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,10 +1416,7 @@ and compile_block_no_loop st queue (pc : Addr.t) ~fall_through scope_stack =
14161416
if pc < 0 then assert false;
14171417
if Addr.Set.mem pc !(st.visited_blocks)
14181418
then (
1419-
Format.eprintf
1420-
"Trying to compile a block twice !!!! %d %b@."
1421-
pc
1422-
(Structure.is_merge_node st.structure pc);
1419+
Format.eprintf "Trying to compile a block twice !!!! %d@." pc;
14231420
assert false);
14241421
if debug () then Format.eprintf "Compiling block %d@;" pc;
14251422
st.visited_blocks := Addr.Set.add pc !(st.visited_blocks);
@@ -1688,15 +1685,15 @@ and compile_branch st queue ((pc, _) as cont) scope_stack ~src ~fall_through : b
16881685
match List.assoc_opt pc scope_stack with
16891686
| Some (l, used, Backward) ->
16901687
assert (src >= 0 && Structure.is_backward st.structure src pc);
1691-
let rec needed scope_stack =
1692-
match scope_stack with
1693-
| [] -> assert false
1694-
| (_pc, (_, _, Forward)) :: rem -> needed rem
1695-
| (pc', (_, _, Backward)) :: _rem -> pc <> pc'
1696-
in
16971688
if fall_through = pc
16981689
then false, flush_all queue []
16991690
else
1691+
let rec needed scope_stack =
1692+
match scope_stack with
1693+
| [] -> assert false
1694+
| (_pc, (_, _, Forward)) :: rem -> needed rem
1695+
| (pc', (_, _, Backward)) :: _rem -> pc <> pc'
1696+
in
17001697
let label =
17011698
if needed scope_stack
17021699
then (

0 commit comments

Comments
 (0)