fix (apply f) -- without the args list
authorAndy Wingo <wingo@pobox.com>
Fri, 6 Nov 2009 10:16:54 +0000 (11:16 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 15 Nov 2009 20:03:32 +0000 (21:03 +0100)
* module/language/tree-il/primitives.scm (apply): Only inline if we
  actually have an argument to apply.

module/language/tree-il/primitives.scm

index 8d93760..db49490 100644 (file)
 (define-primitive-expander acons (x y z)
   (cons (cons x y) z))
 
-(define-primitive-expander apply (f . args)
-  (@apply f . args))
+(define-primitive-expander apply (f a0 . args)
+  (@apply f a0 . args))
 
 (define-primitive-expander call-with-values (producer consumer)
   (@call-with-values producer consumer))