]> git.eshelyaron.com Git - emacs.git/commitdiff
fix aliased function names trampoline removal
authorAndrea Corallo <akrl@sdf.org>
Sun, 29 Dec 2019 18:16:53 +0000 (19:16 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:18 +0000 (11:38 +0100)
lisp/emacs-lisp/comp.el

index f63e5842bc5e8572e4eeacb1829ca999d0d9b404..da1d3f160f097f0991896f98e355727b111e6753 100644 (file)
@@ -1657,7 +1657,8 @@ Return t if something was changed."
         (cond
          ((and subrp (not (subr-native-elisp-p f)))
           ;; Trampoline removal.
-          (let* ((maxarg (cdr (subr-arity f)))
+          (let* ((callee (intern (subr-name f))) ; Fix aliased names.
+                 (maxarg (cdr (subr-arity f)))
                  (call-type (if (if subrp
                                     (not (numberp maxarg))
                                   (comp-nargs-p callee-in-unit))