Author: edelsohn
Branch: ppc-backend-2
Changeset: r55412:af713c920892
Date: 2012-06-05 11:33 -0400
http://bitbucket.org/pypy/pypy/changeset/af713c920892/

Log:    (edelsohn, bivab): In possibly_free_vars, do not free var if var is
        None.

diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py
--- a/pypy/jit/backend/ppc/regalloc.py
+++ b/pypy/jit/backend/ppc/regalloc.py
@@ -286,7 +286,8 @@
 
     def possibly_free_vars(self, vars):
         for var in vars:
-            self.possibly_free_var(var)
+            if var is not None:  # xxx kludgy
+                self.possibly_free_var(var)
 
     def possibly_free_vars_for_op(self, op):
         for i in range(op.numargs()):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to