Skip to content

Commit 176899a

Browse files
committed
Evil solution to the problem of importing the same opaque from two different files. Closes #145.
1 parent abe307c commit 176899a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boot/me/dwarf.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,7 @@ let rec extract_meta
27952795
queue_to_arr meta
27962796
;;
27972797

2798+
let external_opaques = Hashtbl.create 0;;
27982799

27992800
let rec extract_mod_items
28002801
(nref:node_id ref)
@@ -2816,7 +2817,6 @@ let rec extract_mod_items
28162817
id
28172818
in
28182819

2819-
let external_opaques = Hashtbl.create 0 in
28202820
let get_opaque_of o =
28212821
htab_search_or_add external_opaques o
28222822
(fun _ -> next_opaque_id())

0 commit comments

Comments
 (0)