X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fir1util.lisp;h=78d92e3511b0b205fe2a064da194c67e6bc6d2f4;hb=2e5263a05f55e2b56a3194ad7853e9ae18ad69af;hp=25327687177d2d193a7635190e842c2f5710df3b;hpb=b2b5fc7797a2c34d904e2a6e25d9ff357d915ac6;p=sbcl.git diff --git a/src/compiler/ir1util.lisp b/src/compiler/ir1util.lisp index 2532768..78d92e3 100644 --- a/src/compiler/ir1util.lisp +++ b/src/compiler/ir1util.lisp @@ -1305,7 +1305,8 @@ (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)