[pypy-svn] r25466 - pypy/dist/pypy/translator/backendopt

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Apr 6 23:19:12 CEST 2006


Author: cfbolz
Date: Thu Apr  6 23:19:11 2006
New Revision: 25466

Modified:
   pypy/dist/pypy/translator/backendopt/support.py
Log:
hum. getting keepalive right for hopefully the final time


Modified: pypy/dist/pypy/translator/backendopt/support.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/support.py	(original)
+++ pypy/dist/pypy/translator/backendopt/support.py	Thu Apr  6 23:19:11 2006
@@ -80,7 +80,7 @@
             keep_alive_vars[i] = newvar
     elif keep_alive_op_args:
         keep_alive_vars = [var for var in afterblock.operations[0].args
-                               if var_needsgc(var)]
+                               if isinstance(var, Variable) and var_needsgc(var)]
     else:
         keep_alive_vars = []
     if afterblock.exitswitch == c_last_exception:



More information about the Pypy-commit mailing list