]> git.eshelyaron.com Git - emacs.git/commit
Fix native comp prediction on null functionp tested objects
authorAndrea Corallo <acorallo@gnu.org>
Tue, 26 Mar 2024 10:14:08 +0000 (11:14 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Mar 2024 20:38:46 +0000 (21:38 +0100)
commit995f8acc4559f54a2dfce7671afd5c28d1936265
treec5a7b5553e20b8569731da8a9baad3b2b4291054
parent3dbc62ded403ede190774646dec7137d6ba07bf1
Fix native comp prediction on null functionp tested objects

* lisp/emacs-lisp/comp.el (comp-known-predicates)
(comp-known-predicates-h): Update.
(comp--pred-to-pos-cstr, comp--pred-to-neg-cstr): New functions.
(comp--add-cond-cstrs): Make use of them.

* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a test.

(cherry picked from commit 8cc67dbcec0753c5579e63bf82bfe247debe222c)
lisp/emacs-lisp/comp.el
test/src/comp-tests.el