chiark / gitweb /
src/method-impl.lisp: Mark `sod__obj' as ignorable in effective methods.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 2 Aug 2017 11:25:34 +0000 (12:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Jun 2018 18:58:40 +0000 (19:58 +0100)
Very trivial effective methods don't need this, and the warnings are
annoying.

src/method-impl.lisp

index 9f1a48f185027c98d689b68c3bb779f0a848b83d..cbc7537129a9b1a42ad893719ed3bbd0a19c20d4 100644 (file)
@@ -661,7 +661,8 @@ (defmethod compute-method-entry-functions ((method basic-effective-method))
               (codegen-push codegen)
               (ensure-var codegen "sod__obj" ilayout-type
                           (make-convert-to-ilayout-inst class
-                                                        head "me"))))
+                                                        head "me"))
+              (deliver-call codegen :void "SOD__IGNORE" "sod__obj")))
           (finish-entry (tail)
             (let* ((head (sod-class-chain-head tail))
                    (role (if parm-n :valist nil))