(dest (continuation-dest cont)))
(aver (not (eq ctype *wild-type*)))
(multiple-value-bind (ctypes count) (no-fun-values-types ctype)
- (multiple-value-bind (atypes acount) (no-fun-values-types ctype)
+ (multiple-value-bind (atypes acount) (no-fun-values-types atype)
(aver (eq count acount))
(cond ((not (eq count :unknown))
(if (or (exit-p dest)
(not (or (values-subtypep (continuation-proven-type cont)
(continuation-type-to-check cont))
(and (combination-p dest)
- (eq (combination-kind dest) :full)
+ (let ((kind (combination-kind dest)))
+ (or (eq kind :full)
+ (and (fun-info-p kind)
+ (null (fun-info-templates kind))
+ (not (fun-info-ir2-convert kind)))))
;; The theory is that the type assertion is from a
;; declaration in (or on) the callee, so the callee
;; should be able to do the check. We want to let