1. Pypy
  2. Untitled project
  3. pypy

Commits

Antonio Cuni  committed 2202c88

Ignore void parameters in delegate signature.

  • Participants
  • Parent commits 65b8859
  • Branches default

Comments (0)

Files changed (1)

File pypy/translator/cli/delegate.py

View file
  • Ignore whitespace
+from pypy.rpython.ootypesystem import ootype
 from pypy.translator.cli.cts import CTS
 from pypy.translator.cli.node import Node
 
         ilasm.end_function()
 
         resulttype = self.cts.lltype_to_cts(TYPE.RESULT)
-        arglist = [(self.cts.lltype_to_cts(ARG), '') for ARG in TYPE.ARGS]
+        arglist = [(self.cts.lltype_to_cts(ARG), '') for ARG in TYPE.ARGS if ARG is not ootype.Void]
         ilasm.begin_function('Invoke', arglist, resulttype, False,
                              'virtual', 'hidebysig', 'instance', 'default',
                              runtime=True)