mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Fix inlinable-exports bug for pure modules
* module/language/tree-il/inlinable-exports.scm (compute-decoder): Fix bug in which inlinable exports in a pure module would have a missing make-struct/no-tail binding.
This commit is contained in:
parent
222b320868
commit
d01ab7bf5c
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; Attaching inlinable definitions of exported bindings to modules
|
||||
;;; Copyright (C) 2021
|
||||
;;; Copyright (C) 2021, 2022
|
||||
;;; Free Software Foundation, Inc.
|
||||
;;;
|
||||
;;; This library is free software: you can redistribute it and/or modify
|
||||
|
@ -750,7 +750,7 @@
|
|||
(iota (vtable-nfields vtable)))))
|
||||
`((eq? code ,code)
|
||||
(let* (,@(map (lambda (field) `(,field (lp))) fields))
|
||||
(make-struct/no-tail (@ ,mod ,name) ,@fields)))))))
|
||||
(make-struct/simple (@ ,mod ,name) ,@fields)))))))
|
||||
(define (constant-clause constant code)
|
||||
`((eq? code ,code) ',constant))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue