X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fconstraint.lisp;h=8844aeb59e96a8f82c92683c762c0565c5329516;hb=7646aefa188758e2892fea2ad02be4f29b3938f2;hp=1037b726a509fd6d3282bec63fdd895f04eef1f2;hpb=57e21c4b62e8c1a1ee7ef59ed2abb0c864fb06bc;p=sbcl.git diff --git a/src/compiler/constraint.lisp b/src/compiler/constraint.lisp index 1037b72..8844aeb 100644 --- a/src/compiler/constraint.lisp +++ b/src/compiler/constraint.lisp @@ -354,7 +354,8 @@ (setq not-res (type-union not-res other-type))) (let ((leaf-type (leaf-type leaf))) (when (or (constant-p other) - (and (csubtypep other-type leaf-type) + (and (leaf-refs other) ; protect from deleted vars + (csubtypep other-type leaf-type) (not (type= other-type leaf-type)))) (change-ref-leaf ref other) (when (constant-p other) (return)))))))