summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-run.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
-rw-r--r--lisp/emacs-lisp/byte-run.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 4c1dce264a7..539846683f0 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -364,7 +364,12 @@ You don't need this. (See bytecomp.el commentary for more details.)
'(nil byte-compile-inline-expand))
(error "`%s' is a primitive" name))
`(prog1
- (defun ,name ,arglist ,@body)
+ (defun ,name ,arglist
+ ;; Never native-compile defsubsts as we need the byte
+ ;; definition in `byte-compile-unfold-bcf' to perform the
+ ;; inlining (Bug#42664).
+ (declare (speed -1))
+ ,@body)
(eval-and-compile
(put ',name 'byte-optimizer 'byte-compile-inline-expand))))