1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

* Don't iterate over an hash table while modifyiong it in comp.

* lisp/emacs-lisp/comp.el: Don't iterate over the hash values directly
as 'comp--add-cond-cstrs-target-block' can modify the hash content.
This commit is contained in:
Andrea Corallo 2024-10-01 18:15:02 +02:00
parent 3e92f952aa
commit 372ce6adbf

View File

@ -1974,7 +1974,11 @@ TARGET-BB-SYM is the symbol name of the target block."
(defun comp--add-cond-cstrs-simple ()
"`comp--add-cstrs' worker function for each selected function."
(cl-loop
for b being each hash-value of (comp-func-blocks comp-func)
;; Don't iterate over hash values directly as
;; `comp--add-cond-cstrs-target-block' can modify the hash table
;; content.
for b in (cl-loop for b being each hash-value of (comp-func-blocks comp-func)
collect b)
do
(cl-loop
named in-the-basic-block