Skip to content

Commit 1d82a9f

Browse files
committed
Invariant: check variables are defined only once
1 parent d213170 commit 1d82a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/lib/code.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,6 @@ let cont_compare (pc, args) (pc', args') =
835835

836836
let with_invariant = Debug.find "invariant"
837837

838-
let check_defs = false
839-
840838
let do_compact { blocks; start; free_pc = _ } =
841839
let remap =
842840
let max = fst (Addr.Map.max_binding blocks) in
@@ -914,6 +912,8 @@ let used_blocks p =
914912
mark_used p.start;
915913
visited
916914

915+
let check_defs = true
916+
917917
let invariant ({ blocks; start; _ } as p) =
918918
if with_invariant ()
919919
then (

0 commit comments

Comments
 (0)