Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Oct 9, 2024
1 parent fb85df9 commit 8cef6c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/lib/parse_bytecode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1309,13 +1309,12 @@ and compile infos pc state instrs =
then
let loc = Code.Before pc in
match instrs, last with
| (i, No) :: rem, _ ->
| (i, _) :: rem, _ ->
compiled_blocks :=
Addr.Map.add addr (state'', (i, loc) :: rem, last) !compiled_blocks
| [], (last, No) ->
| [], (last, _) ->
compiled_blocks :=
Addr.Map.add addr (state'', instrs, (last, loc)) !compiled_blocks
| (_, (Before _ | After _)) :: _, _ | [], (_, (Before _ | After _)) -> ());
Addr.Map.add addr (state'', instrs, (last, loc)) !compiled_blocks);
compile
infos
(pc + 3)
Expand Down

0 comments on commit 8cef6c9

Please sign in to comment.