Skip to content
Snippets Groups Projects
Commit afbc26b6 authored by ram's avatar ram
Browse files

Fix to work with structure classes.

parent 79c06c60
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/byte-interp.lisp,v 1.3 1992/09/07 16:10:36 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/byte-interp.lisp,v 1.4 1993/03/01 20:02:31 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -668,9 +668,8 @@
(defun load-type-predicate (desc)
(or (gethash desc *byte-type-predicates*)
(let ((type (specifier-type desc)))
(if (structure-type-p type)
(let ((info (info type defined-structure-info
(structure-type-name type))))
(if (typep type 'structure-class)
(let ((info (layout-info (class-layout type))))
(if (and info (eq (dd-type info) 'structure))
(let ((pred (dd-predicate info)))
(if (and pred (fboundp pred))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment