mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Fix inlining of lambda-apply-lambda.
* module/language/tree-il/inline.scm (inline!): Only inline (lambda args (apply (lambda ...) args)) if the outer lambda has rest args. Thanks to Mark Weaver for the note.
This commit is contained in:
parent
83a7b43bf2
commit
98dcf051e0
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@
|
|||
(lp (cdr args) (cdr vars)))
|
||||
(else #f))))
|
||||
|
||||
(and (not opt) (not kw) (not alternate)
|
||||
(and (not opt) (not kw) rest (not alternate)
|
||||
(record-case body
|
||||
((<application> proc args)
|
||||
;; (lambda args (apply (lambda ...) args)) => (lambda ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue