[pypy-svn] r47197 - pypy/branch/kill-keepalives-again/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Fri Oct 5 18:53:22 CEST 2007


Author: arigo
Date: Fri Oct  5 18:53:22 2007
New Revision: 47197

Modified:
   pypy/branch/kill-keepalives-again/pypy/rpython/rptr.py
Log:
Don't need to generate a same_as explicitly.


Modified: pypy/branch/kill-keepalives-again/pypy/rpython/rptr.py
==============================================================================
--- pypy/branch/kill-keepalives-again/pypy/rpython/rptr.py	(original)
+++ pypy/branch/kill-keepalives-again/pypy/rpython/rptr.py	Fri Oct  5 18:53:22 2007
@@ -45,8 +45,7 @@
                 return hop.genop('cast_pointer', [hop.inputarg(self, 0)],
                                  resulttype=hop.r_result.lowleveltype)
             elif isinstance(hop.r_result, InteriorPtrRepr):
-                return hop.genop('same_as', [hop.inputarg(self, 0)],
-                                 resulttype=self.lowleveltype)
+                return hop.inputarg(self, 0)
             else:
                 newopname = 'getsubstruct'
         else:
@@ -276,8 +275,7 @@
             return hop.inputarg(hop.r_result, arg=0)
         FIELD_TYPE = getattr(self.resulttype.TO, attr)
         if isinstance(FIELD_TYPE, lltype.ContainerType):
-            return hop.genop('same_as', [hop.inputarg(self, 0)],
-                             resulttype=self.lowleveltype)
+            return hop.inputarg(self, 0)
         else:
             v_self, v_attr = hop.inputargs(self, lltype.Void)
             vlist = self.getinteriorfieldargs(hop, v_self) + [v_attr]


More information about the pypy-svn mailing list