mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Fix baseline compilation error for make-struct/simple
* module/language/tree-il/compile-bytecode.scm (compile-closure): $allocate-struct takes an SCM.
This commit is contained in:
parent
c0a27de50d
commit
527262fef0
1 changed files with 8 additions and 6 deletions
|
@ -1142,12 +1142,14 @@ in the frame with for the lambda-case clause @var{clause}."
|
|||
('make-struct/simple
|
||||
(match args
|
||||
((vtable . args)
|
||||
(let ((len (length args)))
|
||||
(emit-$allocate-struct asm 0 vtable len)
|
||||
(emit-load-constant asm 0 (length args))
|
||||
(emit-$allocate-struct asm 0 vtable 0)
|
||||
(let lp ((i 0) (args args))
|
||||
(when (< i len)
|
||||
(emit-struct-init! asm 0 i (car args) 1)
|
||||
(lp (1+ i) (cdr args)))))))))
|
||||
(match args
|
||||
(() #t)
|
||||
((arg . args)
|
||||
(emit-struct-init! asm 0 i arg 1)
|
||||
(lp (1+ i) args))))))))
|
||||
(emit-mov asm dst 0)))
|
||||
|
||||
(($ <primcall> src name args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue