[pypy-svn] r14169 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Sun Jul 3 18:49:06 CEST 2005


Author: arigo
Date: Sun Jul  3 18:49:04 2005
New Revision: 14169

Modified:
   pypy/dist/pypy/rpython/rtyper.py
Log:
Ignore the constant value in this check if it is a Void constant.
(The value of Void constants should generally be ignored anyway.)


Modified: pypy/dist/pypy/rpython/rtyper.py
==============================================================================
--- pypy/dist/pypy/rpython/rtyper.py	(original)
+++ pypy/dist/pypy/rpython/rtyper.py	Sun Jul  3 18:49:04 2005
@@ -267,7 +267,8 @@
             # in all generated operations.
             if hop.s_result.is_constant():
                 if isinstance(resultvar, Constant) and \
-                       isinstance(hop.r_result.lowleveltype, Primitive):
+                       isinstance(hop.r_result.lowleveltype, Primitive) and \
+                       hop.r_result.lowleveltype != Void:
                     assert resultvar.value == hop.s_result.const
             resulttype = resultvar.concretetype
             op.result.concretetype = hop.r_result.lowleveltype



More information about the Pypy-commit mailing list