Skip to content

Commit

Permalink
Better debug info for hash codes
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Sep 17, 2024
1 parent 1a65dbf commit 59088cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cleanup2.ml
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ let improve_names files =
| [ trait_impl ] ->
let hash = Hashtbl.hash trait_impl in
let n = Printf.sprintf "%s_%02x" n (hash land 0xFF) in
Krml.Monomorphization.maybe_debug_hash hash (lazy PPrint.(string "trait impl:" ^/^ string trait_impl));
let n = Krml.Idents.mk_fresh n (fun n -> Hashtbl.mem allocated (m, n)) in
Hashtbl.add renamed lid ((m, n), trait_impl);
Hashtbl.add allocated (m, n) ()
Expand Down

0 comments on commit 59088cb

Please sign in to comment.