diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-11-22 16:56:38 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-12-01 16:58:25 +0100 |
commit | 45252ad8f932c98a373ef0ab7f3363a3e27ccbe4 (patch) | |
tree | 0bef2ae3b6673b980927d2e5124db99b0323f076 /lisp/emacs-lisp/rmc.el | |
parent | 6a60bd475d67b7e8c9184836abf7eea229183066 (diff) | |
download | emacs-45252ad8f932c98a373ef0ab7f3363a3e27ccbe4.tar.gz emacs-45252ad8f932c98a373ef0ab7f3363a3e27ccbe4.tar.bz2 emacs-45252ad8f932c98a373ef0ab7f3363a3e27ccbe4.zip |
Fix closure-conversion of shadowed captured lambda-lifted vars
Lambda-lifted variables (ones passed explicitly to lambda-lifted
functions) that are also captured in an outer closure and shadowed
were renamed incorrectly (bug#51982).
Reported by Paul Pogonyshev.
* lisp/emacs-lisp/cconv.el (cconv--lifted-arg): New.
(cconv-convert): Provide correct definiens for the closed-over
variable.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
* test/lisp/emacs-lisp/cconv-tests.el (cconv-tests--intern-all)
(cconv-closure-convert-remap-var): Add tests.
Diffstat (limited to 'lisp/emacs-lisp/rmc.el')
0 files changed, 0 insertions, 0 deletions