[pypy-svn] r23057 - pypy/dist/pypy/rpython/memory

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Feb 6 03:14:18 CET 2006


Author: cfbolz
Date: Mon Feb  6 03:14:16 2006
New Revision: 23057

Modified:
   pypy/dist/pypy/rpython/memory/gctransform.py
Log:
use varoftype there too. Isn't there a more general version of this function
somewhere? it seems to be useful.


Modified: pypy/dist/pypy/rpython/memory/gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctransform.py	Mon Feb  6 03:14:16 2006
@@ -289,8 +289,7 @@
         intconst = rmodel.inputconst(lltype.Void, int)
         refcount = varoftype(lltype.Signed)
         result.append(SpaceOperation("raw_load", [adr2, intconst, zero], refcount))
-        newrefcount = Variable()
-        newrefcount.concretetype = lltype.Signed
+        newrefcount = varoftype(lltype.Signed)
         result.append(SpaceOperation("int_add",
                                      [refcount, rmodel.inputconst(lltype.Signed, 1)],
                                      newrefcount))



More information about the Pypy-commit mailing list