Speed up make_lisp_symbol when debugging

* src/lisp.h (make_lisp_symbol): In eassert use XBARE_SYMBOL
rather than XSYMBOL.  This is safe because the symbol must be
bare.  The change speeds up make_lisp_symbol when debugging.
This commit is contained in:
Paul Eggert 2024-01-20 16:52:31 -08:00
parent cf26f57316
commit bdcd662a21

View file

@ -1166,7 +1166,7 @@ make_lisp_symbol (struct Lisp_Symbol *sym)
cast to char * rather than to intptr_t. */
char *symoffset = (char *) ((char *) sym - (char *) lispsym);
Lisp_Object a = TAG_PTR (Lisp_Symbol, symoffset);
eassert (XSYMBOL (a) == sym);
eassert (XBARE_SYMBOL (a) == sym);
return a;
}