1.0.17.24: refactor handling of constants in the compiler
[sbcl.git] / src / code / late-extensions.lisp
index 08dbd57..e6b24a3 100644 (file)
@@ -124,10 +124,10 @@ EXPERIMENTAL: Interface subject to change."
              (error "Invalid first argument to COMPARE-AND-SWAP: ~S" place))))))))
 
 (macrolet ((def (name lambda-list ref &optional set)
+             #!+compare-and-swap-vops
+             (declare (ignore ref set))
              `(defun ,name (,@lambda-list old new)
                 #!+compare-and-swap-vops
-                (declare (ignore ref set))
-                #!+compare-and-swap-vops
                 (,name ,@lambda-list old new)
                 #!-compare-and-swap-vops
                 (let ((current (,ref ,@lambda-list)))