Skip to content

Fix caml_globals_map duplicate entries #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/asmlink.ml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let check_consistency file_name unit crc =
begin try
List.iter
(fun (name, crco) ->
String.Tbl.add interfaces name ();
String.Tbl.replace interfaces name ();
match crco with
None -> ()
| Some crc ->
Expand Down Expand Up @@ -91,7 +91,7 @@ let check_consistency file_name unit crc =
end;
implementations := unit.ui_name :: !implementations;
Cmx_consistbl.set crc_implementations unit.ui_name crc file_name;
String.Tbl.add implementations_defined unit.ui_name file_name;
String.Tbl.replace implementations_defined unit.ui_name file_name;
if unit.ui_symbol <> unit.ui_name then
cmx_required := unit.ui_name :: !cmx_required

Expand Down