]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix native compiler handling of narrow-to-region
authorGerd Möllmann <gerd@gnu.org>
Sat, 30 Jul 2022 15:32:04 +0000 (17:32 +0200)
committerGerd Möllmann <gerd@gnu.org>
Sat, 30 Jul 2022 15:32:04 +0000 (17:32 +0200)
* lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): Use auto for
byte-narrow-to-region.

lisp/emacs-lisp/comp.el

index 6e9132e43044d2416eb3918e23ec102e189c35b3..4354ea03a4eb653cae175959c4fb0108ea201fe7 100644 (file)
@@ -1915,11 +1915,7 @@ and the annotation emission."
       (byte-char-syntax auto)
       (byte-buffer-substring auto)
       (byte-delete-region auto)
-      (byte-narrow-to-region
-       (comp-emit-set-call (comp-call 'narrow-to-region
-                                      (comp-slot)
-                                      (comp-slot+1)
-                                      (make-comp-mvar :constant nil))))
+      (byte-narrow-to-region auto)
       (byte-widen
        (comp-emit-set-call (comp-call 'widen)))
       (byte-end-of-line auto)