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:
parent
1563f5e042
commit
73a23027f5
1 changed files with 2 additions and 0 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue