From a5da1a5554d49ad1def89fa85bb3417cb8babdeb Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Tue, 14 Apr 1992 18:10:10 +0000
Subject: [PATCH] Added an assertion that we don't try to local call convert
 when the caller and callee are in different components.

---
 compiler/locall.lisp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/compiler/locall.lisp b/compiler/locall.lisp
index b44d9836f..45c5050c7 100644
--- a/compiler/locall.lisp
+++ b/compiler/locall.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/locall.lisp,v 1.26 1992/04/14 16:24:13 ram Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/locall.lisp,v 1.27 1992/04/14 18:10:10 ram Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -306,6 +306,11 @@
 		     (functional-entry-function fun)
 		     fun)))
 	  (*compiler-error-context* call))
+      (let ((c1 (block-component (node-block call)))
+	    (c2 (block-component (node-block (lambda-bind fun)))))
+	(assert (or (eq c1 c2)
+		    (and (eq (component-kind c1) :initial)
+			 (eq (component-kind c2) :initial)))))
       (assert (member (functional-kind fun) '(nil :escape :cleanup :optional)))
       (cond ((mv-combination-p call)
 	     (convert-mv-call ref call fun))
-- 
GitLab