From 38785da18f85ee1ce38483171af0bb78ea03a05a Mon Sep 17 00:00:00 2001 From: wlott <wlott> Date: Wed, 27 Nov 1991 19:24:58 +0000 Subject: [PATCH] Fixed IR2-CONVERT-REF to correctly convert unnamed constants instead of converting them all to (symbol-value NIL). --- compiler/ir2tran.lisp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/ir2tran.lisp b/compiler/ir2tran.lisp index d57123323..741a21549 100644 --- a/compiler/ir2tran.lisp +++ b/compiler/ir2tran.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir2tran.lisp,v 1.35 1991/11/26 15:37:23 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir2tran.lisp,v 1.36 1991/11/27 19:24:58 wlott Exp $") ;;; ;;; ********************************************************************** ;;; @@ -161,11 +161,11 @@ (vop value-cell-ref node block tn res) (emit-move node block tn res)))) (constant - (if (and name - (typecase (constant-value leaf) - ((or number character) t) - (symbol (symbol-package (constant-value leaf))) - (t t))) + (if (or (null name) + (typecase (constant-value leaf) + ((or number character) t) + (symbol (symbol-package (constant-value leaf))) + (t t))) (emit-move node block (constant-tn leaf) res) (let ((name-tn (emit-constant name))) (if (policy node (zerop safety)) -- GitLab