mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Tree-IL->GLIL: Fix primitive-ref reification bug
* module/language/tree-il/compile-glil.scm (flatten-lambda-case): Fix a bug whereby a primitive that is present in the compilation module but not at runtime was getting compiled as a toplevel-ref. This was causing current-module to fail to resolve in R6RS modules.
This commit is contained in:
parent
d422f3167e
commit
c450b47723
1 changed files with 1 additions and 2 deletions
|
@ -595,8 +595,7 @@
|
|||
|
||||
((<primitive-ref> src name)
|
||||
(cond
|
||||
((eq? (module-variable (fluid-ref *comp-module*) name)
|
||||
(module-variable the-root-module name))
|
||||
((eq? (fluid-ref *comp-module*) the-root-module)
|
||||
(case context
|
||||
((tail push vals)
|
||||
(emit-code src (make-glil-toplevel 'ref name))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue