Enforce :BOOL representation type on condition values for IF statements.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-12-28 14:46:28 +01:00
parent c17b26f4d2
commit b659f7de92

View file

@ -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)