X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fltv.lisp;h=a695b65283366f0e337f43a4455198ce602f495f;hb=49e8403800426f37a54d9b87353a31af36e7af40;hp=b7c705ca3ccab3f5cee0f7ff99dd9401a4f004f1;hpb=f09f67b4233004079affc70de2ef2d49f27ca91a;p=sbcl.git diff --git a/src/compiler/ltv.lisp b/src/compiler/ltv.lisp index b7c705c..a695b65 100644 --- a/src/compiler/ltv.lisp +++ b/src/compiler/ltv.lisp @@ -35,7 +35,10 @@ guaranteed to never be modified, so it can be put in read-only storage." (specifier-type 'function)) ((and (legal-fun-name-p op) (eq :declared (info :function :where-from op))) - (fun-type-returns (info :function :type op))) + (let ((ftype (info :function :type op))) + (if (fun-type-p ftype) + (fun-type-returns ftype) + *wild-type*))) (t *wild-type*)))) ((and (symbolp form)