X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fknownfun.lisp;h=001c66940d97776fe0b6d4cf7f90312dececeed7;hb=d0552bdb80b50eb2c600de19b89b2d7139c4841c;hp=86f4b85106e99b196940e48739edd11b3ae2c293;hpb=2010727926b091b23a246f6f659be61e27e19667;p=sbcl.git diff --git a/src/compiler/knownfun.lisp b/src/compiler/knownfun.lisp index 86f4b85..001c669 100644 --- a/src/compiler/knownfun.lisp +++ b/src/compiler/knownfun.lisp @@ -161,12 +161,14 @@ (string-equal (transform-note x) note) (eq (transform-important x) important))) (fun-info-transforms info)))) - (if old - (setf (transform-function old) fun - (transform-note old) note) - (push (make-transform :type ctype :function fun :note note - :important important) - (fun-info-transforms info))) + (cond (old + (style-warn "Overwriting ~S" old) + (setf (transform-function old) fun + (transform-note old) note)) + (t + (push (make-transform :type ctype :function fun :note note + :important important) + (fun-info-transforms info)))) name)) ;;; Make a FUN-INFO structure with the specified type, attributes @@ -208,7 +210,7 @@ ;;; shared, we copy it. We don't have to copy the lists, since each ;;; function that has generators or transforms has already been ;;; through here. -(declaim (ftype (function (t) fun-info) fun-info-or-lose)) +(declaim (ftype (sfunction (t) fun-info) fun-info-or-lose)) (defun fun-info-or-lose (name) (let (;; FIXME: Do we need this rebinding here? It's a literal ;; translation of the old CMU CL rebinding to