match: ensure entire `body' is traversed when eliminating unused temps
This commit is contained in:
parent
21cd97f2b2
commit
0f5ba032bf
|
@ -149,8 +149,9 @@
|
|||
(for/first ([tmp (in-list (hash-keys todo))] #:when (free-identifier=? tmp stx))
|
||||
(hash-remove! todo tmp)
|
||||
(hash-set! seen tmp #t))]
|
||||
[(list? (syntax-e stx))
|
||||
(for-each loop (syntax-e stx))]))
|
||||
[(syntax->list stx)
|
||||
=> (lambda (stxs)
|
||||
(for-each loop stxs))]))
|
||||
(for/lists (tmps accs)
|
||||
([tmp (in-list (syntax-e tmps))]
|
||||
[acc (in-list (syntax-e accs))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user