mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 14:21:10 +02:00
CPS conversion doesn't automatically produce $values
* module/language/tree-il/compile-cps.scm (convert): Don't convert values primcalls to $values, because we don't know that the continuation can accept that number of values.
This commit is contained in:
parent
8b2a96d044
commit
be0a8bb4f0
1 changed files with 1 additions and 3 deletions
|
@ -347,9 +347,7 @@
|
|||
k subst)
|
||||
(convert-args args
|
||||
(lambda (args)
|
||||
(if (eq? name 'values)
|
||||
(build-cps-term ($continue k ($values args)))
|
||||
(build-cps-term ($continue k ($primcall name args))))))))))
|
||||
(build-cps-term ($continue k ($primcall name args)))))))))
|
||||
|
||||
;; Prompts with inline handlers.
|
||||
(($ <prompt> src escape-only? tag body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue