X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fknownfun.lisp;h=001c66940d97776fe0b6d4cf7f90312dececeed7;hb=d0552bdb80b50eb2c600de19b89b2d7139c4841c;hp=e47a03a643d8492c1ee93f09d24777b002d934e7;hpb=942e5de3f3e27e1cc6ae4aae69c040fa1dc7db00;p=sbcl.git diff --git a/src/compiler/knownfun.lisp b/src/compiler/knownfun.lisp index e47a03a..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