]> git.eshelyaron.com Git - emacs.git/commitdiff
make more robust comp-emit-uncond-jump
authorAndrea Corallo <akrl@sdf.org>
Thu, 24 Oct 2019 20:13:29 +0000 (22:13 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:58 +0000 (11:37 +0100)
lisp/emacs-lisp/comp.el

index cf779179d709293b7fac63926b035778090a35b8..f41731951eabda3d6b3a2960fe3356c5c535718f 100644 (file)
@@ -610,7 +610,8 @@ The block is returned."
 (defun comp-emit-uncond-jump (lap-label)
   "Emit an unconditional branch to LAP-LABEL."
   (cl-destructuring-bind (label-num . stack-depth) lap-label
-    (cl-assert (= (1- stack-depth) (comp-sp)))
+    (when stack-depth
+      (cl-assert (= (1- stack-depth) (comp-sp))))
     (let ((target (comp-lap-to-limple-bb label-num)))
       (comp-block-maybe-mark-pending :name target
                                      :sp (comp-sp)