Skip to content

Commit 2833046

Browse files
authored
[hl] Fix debug assigns not sorted when not optimize (#12006)
1 parent 18105b5 commit 2833046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generators/genhl.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,7 @@ and make_fun ?gen_content ctx name fidx f cthis cparent =
34273427
regs = DynArray.to_array ctx.m.mregs.arr;
34283428
code = DynArray.to_array ctx.m.mops;
34293429
debug = make_debug ctx ctx.m.mdebug;
3430-
assigns = Array.of_list (List.rev ctx.m.massign);
3430+
assigns = Array.of_list (List.sort (fun (_,p1) (_,p2) -> p1 - p2) (List.rev ctx.m.massign));
34313431
} in
34323432
ctx.m <- old;
34333433
Hashtbl.add ctx.defined_funs fidx ();

0 commit comments

Comments
 (0)