mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-14 21:32:49 -08:00
Enforce :BOOL representation type on condition values for IF statements.
This commit is contained in:
parent
c17b26f4d2
commit
b659f7de92
1 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
(defun c1alternatives (form true-branch false-branch)
|
||||
(c1with-saved-value (prefix postfix temp form)
|
||||
(when (or prefix postfix)
|
||||
(setf (var-kind temp) :bool))
|
||||
(nconc prefix
|
||||
(if true-branch
|
||||
(nconc (c1jmp-true true-branch temp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue