Bind *LABEL-COUNTER* to 0 at the start of compiling

This commit is contained in:
John Lorentzson 2025-05-08 19:33:31 +02:00
parent bcc039774b
commit 501da2341e

View file

@ -112,7 +112,8 @@
(produce-instruction 'inst-tax-implied))) (produce-instruction 'inst-tax-implied)))
(defmethod compile-starting-at ((node node)) (defmethod compile-starting-at ((node node))
(let ((*compile-result* '())) (let ((*compile-result* '())
(*label-counter* 0))
(compile-node node) (compile-node node)
(nreverse *compile-result*))) (nreverse *compile-result*)))