]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/bytecode.c (exec_byte_code): Remove superfluous condition
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 15 Jun 2025 14:08:26 +0000 (16:08 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:14:18 +0000 (10:14 +0200)
Bytecode should never be able to set anything to Qunbound because that
value is not accessible from Lisp.  Found by Pip Cet.

(cherry picked from commit ebdad09c5a0a822acb52ec58b3319d77d156f0ce)

src/bytecode.c

index 4475d4a0b30d5cceae5d7d46962f0ac4ebbdfb02..1da2ecba0710254cf1ae7fd1006635664a7f5f39 100644 (file)
@@ -697,10 +697,7 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template,
          {
            Lisp_Object sym = vectorp[op];
            Lisp_Object val = POP;
-
-           /* Inline the most common case.  */
-           if (!BASE_EQ (val, Qunbound)
-               && XBARE_SYMBOL (sym)->u.s.redirect == SYMBOL_PLAINVAL
+           if (XBARE_SYMBOL (sym)->u.s.redirect == SYMBOL_PLAINVAL
                && !XBARE_SYMBOL (sym)->u.s.trapped_write)
              SET_SYMBOL_VAL (XBARE_SYMBOL (sym), val);
            else