From 930d1e019f95a55d021992a5b33d02635d13b1d2 Mon Sep 17 00:00:00 2001 From: ram <ram> Date: Tue, 2 Jun 1992 00:35:25 +0000 Subject: [PATCH] Fixed an occasional NIL not CONTINUATION error in DELETE-CONTINUATION when the DEST has been UNLINK-NODE'ed. --- compiler/ir1util.lisp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/compiler/ir1util.lisp b/compiler/ir1util.lisp index 1ecf115a5..b24acdb6c 100644 --- a/compiler/ir1util.lisp +++ b/compiler/ir1util.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/ir1util.lisp,v 1.54 1992/04/18 12:06:57 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.55 1992/06/02 00:35:25 ram Exp $") ;;; ;;; ********************************************************************** ;;; @@ -922,9 +922,12 @@ (let ((dest (continuation-dest cont))) (when dest - (let ((block (node-block dest))) - (unless (block-delete-p block) - (mark-for-deletion block))))) + (let ((prev (node-prev dest))) + (when (and prev + (not (eq (continuation-kind prev) :deleted))) + (let ((block (continuation-block prev))) + (unless (block-delete-p block) + (mark-for-deletion block))))))) (setf (continuation-kind cont) :deleted) (setf (continuation-dest cont) nil) -- GitLab