Do not reassign the same var to itself

This commit is contained in:
Justin Ethier 2019-12-23 16:26:07 -05:00
parent 5b3f5d34e1
commit 3d60211e67

View file

@ -970,11 +970,13 @@
string-append
(map
(lambda (arg body-exp)
(string-append
(mangle arg)
" = "
(c:body body-exp)
";"))
(if (equal? (mangle arg) (c:body body-exp))
"" ;; Do nothing
(string-append
(mangle arg)
" = "
(c:body body-exp)
";")))
parent-args
cgen-lis))))
;;(trace:info `(loop ,args ,(cadr args) ,cgen-lis ,parent-args))