1.0.45.10: tools-for-build/Makefile path fixes
[sbcl.git] / src / compiler / ir1util.lisp
index 2532768..78d92e3 100644 (file)
                  (aver (null (functional-entry-fun leaf)))
                  (delete-lambda leaf))
                 (:external
-                 (delete-lambda leaf))
+                 (unless (functional-has-external-references-p leaf)
+                   (delete-lambda leaf)))
                 ((:deleted :zombie :optional))))
              (optional-dispatch
               (unless (eq (functional-kind leaf) :deleted)