mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 00:07:36 +02:00
Bugfix - swap when we use num-lambda
This commit is contained in:
parent
92fb2c176d
commit
31e99da295
1 changed files with 2 additions and 2 deletions
|
@ -906,7 +906,7 @@
|
|||
;;TODO: this is not going to work, we are going to need to use ast:lambda-id instead of
|
||||
;;an allocation ID. make that change in allocate-lambda, disable all WKL code, and make
|
||||
;;sure it is stable before proceeding...
|
||||
; cgen id ,(adbf:cgen-id fnc)
|
||||
; cgen id ,(ast:lambda-id wkf)
|
||||
; )))
|
||||
; )
|
||||
(set-c-call-arity! (c:num-args cargs))
|
||||
|
@ -1160,7 +1160,7 @@
|
|||
(define (allocate-lambda ast:lam lam . cps?)
|
||||
(let ((id num-lambdas))
|
||||
(cond
|
||||
((and ast:lam (equal? cps? '(#f)))
|
||||
((and ast:lam (not (equal? cps? '(#f))))
|
||||
(set! id (ast:lambda-id ast:lam)))
|
||||
(else
|
||||
(set! num-lambdas (+ 1 num-lambdas))))
|
||||
|
|
Loading…
Add table
Reference in a new issue