Skip to content

Commit 83f918e

Browse files
committed
[fix] don't setf fdefinition of static-dispatch-name at compile-time
1 parent 758faab commit 83f918e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/nonlite/dispatch.lisp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ in the lambda list; the consequences of mutation are undefined.
231231
`(compiler-macro-notes:with-notes (',whole nil :unwind-on-signal nil)
232232
(signal 'defpolymorph-note :datum ,inline-notes)
233233
t))
234-
(eval-when (:compile-toplevel :load-toplevel :execute)
235-
234+
(eval-when (:load-toplevel :execute)
236235
;; We have implemented inlining through the PF-COMPILER-MACRO.
237236
;; In addition to inlining, it also propagates the type declarations
238237
;; so that further compiler/macroexpansions can make use of this info.
@@ -247,9 +246,8 @@ in the lambda list; the consequences of mutation are undefined.
247246
;; deal with them first.
248247
`(with-muffled-compilation-warnings
249248
(setf (fdefinition ',static-dispatch-name) ,lambda-body))
250-
`(setf (fdefinition ',static-dispatch-name) ,lambda-body))
251-
252-
249+
`(setf (fdefinition ',static-dispatch-name) ,lambda-body)))
250+
(eval-when (:compile-toplevel :load-toplevel :execute)
253251

254252
(register-polymorph ',name ',inline
255253
',doc

0 commit comments

Comments
 (0)