1
Fork 0
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:
Andy Wingo 2013-10-27 09:14:04 +01:00
parent d422f3167e
commit c450b47723

View file

@ -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))))