aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c
index 039e6c31134..a5a76a27554 100644
--- a/src/data.c
+++ b/src/data.c
@@ -836,7 +836,6 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
836 doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */) 836 doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */)
837 (register Lisp_Object symbol, Lisp_Object definition) 837 (register Lisp_Object symbol, Lisp_Object definition)
838{ 838{
839 register Lisp_Object function;
840 CHECK_SYMBOL (symbol); 839 CHECK_SYMBOL (symbol);
841 /* Perhaps not quite the right error signal, but seems good enough. */ 840 /* Perhaps not quite the right error signal, but seems good enough. */
842 if (NILP (symbol) && !NILP (definition)) 841 if (NILP (symbol) && !NILP (definition))
@@ -844,11 +843,11 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
844 think this one little sanity check is worth its cost, but anyway. */ 843 think this one little sanity check is worth its cost, but anyway. */
845 xsignal1 (Qsetting_constant, symbol); 844 xsignal1 (Qsetting_constant, symbol);
846 845
847 function = XSYMBOL (symbol)->u.s.function;
848
849 eassert (valid_lisp_object_p (definition)); 846 eassert (valid_lisp_object_p (definition));
850 847
851#ifdef HAVE_NATIVE_COMP 848#ifdef HAVE_NATIVE_COMP
849 register Lisp_Object function = XSYMBOL (symbol)->u.s.function;
850
852 if (comp_enable_subr_trampolines 851 if (comp_enable_subr_trampolines
853 && SUBRP (function) 852 && SUBRP (function)
854 && !SUBR_NATIVE_COMPILEDP (function)) 853 && !SUBR_NATIVE_COMPILEDP (function))