[pypy-svn] r15351 - pypy/dist/pypy/rpython

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Jul 29 15:50:02 CEST 2005


Author: cfbolz
Date: Fri Jul 29 15:50:02 2005
New Revision: 15351

Modified:
   pypy/dist/pypy/rpython/rtyper.py
Log:
we need to use another variable here, because otherwise you still have
the new block in the next loop. Then llexitcase does not get attached to
the next link, which is bad. Still the same error :-(



Modified: pypy/dist/pypy/rpython/rtyper.py
==============================================================================
--- pypy/dist/pypy/rpython/rtyper.py	(original)
+++ pypy/dist/pypy/rpython/rtyper.py	Fri Jul 29 15:50:02 2005
@@ -321,11 +321,11 @@
                     # cannot insert conversion operations around a single
                     # link, unless it is the only exit of this block.
                     # create a new block along the link...
-                    block = insert_empty_block(self.annotator.translator,
-                                               link,
+                    newblock = insert_empty_block(self.annotator.translator,
+                                                  link,
                     # ...and store the conversions there.
                                                newops=newops)
-                    link = block.exits[0]
+                    link = newblock.exits[0]
             for i, new_a1 in newlinkargs.items():
                 link.args[i] = new_a1
 



More information about the Pypy-commit mailing list