Skip to content

Commit

Permalink
(compiler) do not store imports_pred in reverse order
Browse files Browse the repository at this point in the history
Src-commit: 91dfb7e647a8289f5439d74ec0d271a62cd775af
  • Loading branch information
jfmc committed Nov 15, 2024
1 parent 0dc6430 commit ae11a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/compiler/c_itf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@
; indirect_export(BFile, F, A, DefType, Meta, EndFile0),
relocate_endfile(BFile, File, EndFile0, EndFile)
),
asserta_fact(imports_pred(Base, File, F, A, DefType, Meta, EndFile)),
assertz_fact(imports_pred(Base, File, F, A, DefType, Meta, EndFile)),
fail.
gen_imports(Base) :-
( retract_fact(imports_expl(Base, File, F, A))
Expand All @@ -1500,7 +1500,7 @@
base_name_or_user(File, BFile),
( exports_thru(BFile, F, A, DefType, Meta, EndFile) ->
relocate_endfile(BFile, File, EndFile, EndFile2),
asserta_fact(imports_pred(Base, File, F, A, DefType, Meta, EndFile2))
assertz_fact(imports_pred(Base, File, F, A, DefType, Meta, EndFile2))
; defines_module(BFile, IM),
interface_error(not_exported(IM,F/A))
),
Expand Down

0 comments on commit ae11a76

Please sign in to comment.