]> git.eshelyaron.com Git - emacs.git/commitdiff
fix ref propagation
authorAndrea Corallo <akrl@sdf.org>
Sat, 9 Nov 2019 14:46:44 +0000 (15:46 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:01 +0000 (11:38 +0100)
lisp/emacs-lisp/comp.el

index 813c826501f9e9914e1986a726222c8eb25dc313..3d452543452b87848e67ffe1a9bacdbe9969b2d6 100644 (file)
@@ -1491,7 +1491,7 @@ This can run just once."
      ;; Reference propagation.
      (let ((operands (cons lval rest)))
        (when (cl-some #'comp-mvar-ref operands)
-         (mapc (lambda (x) (setf (comp-mvar-ref x) t)) rest))))))
+         (mapc (lambda (x) (setf (comp-mvar-ref x) t)) operands))))))
 
 (defun comp-propagate* ()
   "Propagate for set and phi operands."