X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fctype.lisp;h=1470a49a30c4afe00366d764a9f4029b3a0b2773;hb=95591ed483dbb8c0846c129953acac1554f28809;hp=32ed2436fc3cccc9aeec9720a5feb7f2b281bbf6;hpb=c2431e2d0d0222a3cf20cfdfa48201bdcc65cd76;p=sbcl.git diff --git a/src/compiler/ctype.lisp b/src/compiler/ctype.lisp index 32ed243..1470a49 100644 --- a/src/compiler/ctype.lisp +++ b/src/compiler/ctype.lisp @@ -632,8 +632,8 @@ ((lambda-var-arg-info arg) (let* ((info (lambda-var-arg-info arg)) (default (arg-info-default info)) - (def-type (when (constantp default) - (ctype-of (eval default))))) + (def-type (when (sb!xc:constantp default) + (ctype-of (constant-form-value default))))) (ecase (arg-info-kind info) (:keyword (let* ((key (arg-info-key info)) @@ -765,8 +765,9 @@ (type-specifier type)))) (t (setf (leaf-type var) type) - (dolist (ref (leaf-refs var)) - (derive-node-type ref (make-single-value-type type)))))) + (let ((s-type (make-single-value-type type))) + (dolist (ref (leaf-refs var)) + (derive-node-type ref s-type)))))) t)))))) ;;; FIXME: This is quite similar to ASSERT-NEW-DEFINITION.