[pypy-svn] r79352 - pypy/branch/jit-free/pypy/jit/backend/llgraph

arigo at codespeak.net arigo at codespeak.net
Mon Nov 22 17:59:11 CET 2010


Author: arigo
Date: Mon Nov 22 17:59:09 2010
New Revision: 79352

Modified:
   pypy/branch/jit-free/pypy/jit/backend/llgraph/llimpl.py
Log:
Fix bug (op.fail_args can be None to mean []).


Modified: pypy/branch/jit-free/pypy/jit/backend/llgraph/llimpl.py
==============================================================================
--- pypy/branch/jit-free/pypy/jit/backend/llgraph/llimpl.py	(original)
+++ pypy/branch/jit-free/pypy/jit/backend/llgraph/llimpl.py	Mon Nov 22 17:59:09 2010
@@ -449,7 +449,10 @@
                     _stats.exec_conditional_jumps += 1
                     if op.jump_target is not None:
                         # a patched guard, pointing to further code
-                        args = [self.getenv(v) for v in op.fail_args if v]
+                        if op.fail_args:
+                            args = [self.getenv(v) for v in op.fail_args if v]
+                        else:
+                            args = []
                         assert len(op.jump_target.inputargs) == len(args)
                         self.env = dict(zip(op.jump_target.inputargs, args))
                         self.loop = op.jump_target



More information about the Pypy-commit mailing list