1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Fix module capture for closures in <fix>

* module/language/tree-il/compile-bytecode.scm (compile-closure):
  Capture closures for <fix> if needed.
This commit is contained in:
Andy Wingo 2020-05-11 14:36:00 +02:00
parent 1563f5e042
commit 73a23027f5

View file

@ -910,6 +910,8 @@ in the frame with for the lambda-case clause @var{clause}."
(let ((env (push-local name sym env)))
(match closure
(($ <closure> label code scope free-vars)
;; FIXME: Allocate one scope per fix.
(maybe-cache-module! scope 0)
(emit-maybe-allocate-closure
asm (env-idx env) (length free-vars) label 0)
env))))