From 15502d1457810d4c57f37108eb3dba0ee38e2889 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Tue, 14 Jul 1992 03:41:23 +0000
Subject: [PATCH] Fixed dump-1-location to also take integer positions
 directly, instead of always requiring labels.

---
 compiler/debug-dump.lisp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/compiler/debug-dump.lisp b/compiler/debug-dump.lisp
index 8f6402b5a..fd2575fe9 100644
--- a/compiler/debug-dump.lisp
+++ b/compiler/debug-dump.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/debug-dump.lisp,v 1.29 1992/05/21 23:16:29 wlott Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/debug-dump.lisp,v 1.30 1992/07/14 03:41:23 wlott Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -112,7 +112,8 @@
 ;;;
 (defun dump-1-location (node block kind tlf-num label live var-locs vop)
   (declare (type node node) (type ir2-block block)
-	   (type local-tn-bit-vector live) (type label label)
+	   (type local-tn-bit-vector live)
+	   (type (or label index) label)
 	   (type location-kind kind) (type (or index null) tlf-num)
 	   (type hash-table var-locs) (type (or vop null) vop))
   
@@ -122,7 +123,7 @@
 	0)
    *byte-buffer*)
   
-  (let ((loc (label-position label)))
+  (let ((loc (if (fixnump label) label (label-position label))))
     (write-var-integer (- loc *previous-location*) *byte-buffer*)
     (setq *previous-location* loc))
 
-- 
GitLab