From 98dcf051e00bb0b36b932b60e5bdce584f2acde4 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 28 Mar 2010 14:31:57 +0200 Subject: [PATCH] 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. --- module/language/tree-il/inline.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/language/tree-il/inline.scm b/module/language/tree-il/inline.scm index 4e3863ef6..8dd7dd334 100644 --- a/module/language/tree-il/inline.scm +++ b/module/language/tree-il/inline.scm @@ -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 (( proc args) ;; (lambda args (apply (lambda ...) args)) => (lambda ...)