mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 08:11:05 -08: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:
parent
3e92f952aa
commit
372ce6adbf
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue