[pypy-svn] r50706 - pypy/dist/pypy/jit/codegen/llgraph

arigo at codespeak.net arigo at codespeak.net
Thu Jan 17 16:55:49 CET 2008


Author: arigo
Date: Thu Jan 17 16:55:49 2008
New Revision: 50706

Modified:
   pypy/dist/pypy/jit/codegen/llgraph/llimpl.py
Log:
Fix test.


Modified: pypy/dist/pypy/jit/codegen/llgraph/llimpl.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/llgraph/llimpl.py	(original)
+++ pypy/dist/pypy/jit/codegen/llgraph/llimpl.py	Thu Jan 17 16:55:49 2008
@@ -479,9 +479,10 @@
 # and an OO tuple, so we need to make the llinterpreter thinking that
 # its _TYPE is compatible both with a struct and a
 # record. TwoFacedType does exactly this.
-class TwoFacedType(ootype.BuiltinType):
+class TwoFacedType(lltype.Ptr, ootype.BuiltinType):
     def __init__(self, TYPE1, TYPE2):
         self.TYPE1 = TYPE1
+        self.TO = TYPE1.TO   # this must be the LL type, a Ptr
         self.TYPE2 = TYPE2
 
     def __eq__(self, other):



More information about the Pypy-commit mailing list