diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-06-07 13:58:27 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-06-07 19:20:04 +0200 |
commit | 88ccee4083f9059603c8bf9b989848c41902d8b0 (patch) | |
tree | 24a5d698e0862971a49fd0ffebeab7ca8748bd1d /lisp/emacs-lisp/comp.el | |
parent | 47a6fbd38278b40737d498a41a35259458633136 (diff) | |
download | emacs-88ccee4083f9059603c8bf9b989848c41902d8b0.tar.gz emacs-88ccee4083f9059603c8bf9b989848c41902d8b0.tar.bz2 emacs-88ccee4083f9059603c8bf9b989848c41902d8b0.zip |
* Fix comp-call-optim-form-call for null `callee'
* lisp/emacs-lisp/comp.el (comp-call-optim-form-call): Guard
agains null `calle'.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index ecd411591a3..520ec8cd44d 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -2023,7 +2023,8 @@ FUNCTION can be a function-name or byte compiled function." ;; Fill missing args to reach TOTAL (append args (cl-loop repeat (- total (length args)) collect (make-comp-mvar :constant nil))))) - (when (and (or (symbolp callee) + (when (and callee + (or (symbolp callee) (gethash callee (comp-ctxt-byte-func-to-func-h comp-ctxt))) (not (memq callee comp-never-optimize-functions))) (let* ((f (if (symbolp callee) |