X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Flocall.lisp;h=31e813631a276e921875d2e0b75bc22a2bda5022;hb=83ce01b419da19b549eb76b0c3451f2b32a266d5;hp=3b57132bbb0664e302213c3582d869499eac853d;hpb=f7ba8c211a140c8c517c1122581dae63bedf672a;p=sbcl.git diff --git a/src/compiler/locall.lisp b/src/compiler/locall.lisp index 3b57132..31e8136 100644 --- a/src/compiler/locall.lisp +++ b/src/compiler/locall.lisp @@ -50,12 +50,16 @@ ;; so we just need to process used-once LVARs. (when (node-p uses) (node-ends-block uses)) - ;; If this LVAR's USE is good for DX, it must be a regular - ;; combination, and its arguments are potentially DX as well. + ;; If this LVAR's USE is good for DX, it is either a CAST, or it + ;; must be a regular combination whose arguments are potentially DX as well. (flet ((recurse (use) - (loop for arg in (combination-args use) - when (lvar-good-for-dx-p arg) - append (handle-nested-dynamic-extent-lvars arg)))) + (etypecase use + (cast + (handle-nested-dynamic-extent-lvars (cast-value use))) + (combination + (loop for arg in (combination-args use) + when (lvar-good-for-dx-p arg) + append (handle-nested-dynamic-extent-lvars arg)))))) (cons lvar (if (listp uses) (loop for use in uses