Skip to content

Commit

Permalink
Fix return value of SB-INTERPRETER::SPECIFIER-FROM-CHECKFUN
Browse files Browse the repository at this point in the history
When looking up the type for a predicate via
SB-C::*BACKEND-PREDICATE-TYPES*, the result has to be unparsed.
  • Loading branch information
scymtym committed Jul 8, 2016
1 parent 85d0fba commit 540ce7f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/interpreter/checkfuns.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@
(or (get-unary-predicate simplified) simplified)))))

(defun specifier-from-checkfun (fun-or-ctype)
(if (functionp fun-or-ctype)
(or (gethash (%fun-name fun-or-ctype)
sb-c::*backend-predicate-types*)
(bug "No type specifier for function ~S" fun-or-ctype))
(type-specifier fun-or-ctype)))
(type-specifier
(if (functionp fun-or-ctype)
(or (gethash (%fun-name fun-or-ctype)
sb-c::*backend-predicate-types*)
(bug "No type specifier for function ~S" fun-or-ctype))
fun-or-ctype)))

(defun typecheck-fail (symbol value type)
(error 'interpreter-type-error
Expand Down

0 comments on commit 540ce7f

Please sign in to comment.