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

arigo at codespeak.net arigo at codespeak.net
Tue Oct 10 11:12:20 CEST 2006


Author: arigo
Date: Tue Oct 10 11:12:19 2006
New Revision: 33087

Modified:
   pypy/dist/pypy/translator/backendopt/merge_if_blocks.py
Log:
Fix translation.  The exitcase is not supposed to be a Constant.


Modified: pypy/dist/pypy/translator/backendopt/merge_if_blocks.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/merge_if_blocks.py	(original)
+++ pypy/dist/pypy/translator/backendopt/merge_if_blocks.py	Tue Oct 10 11:12:19 2006
@@ -37,7 +37,7 @@
     for block, case in chain:
         link = block.exits[1]
         links.append(link)
-        link.exitcase = case
+        link.exitcase = case.value
         link.llexitcase = case.value
         link.prevblock = firstblock
         link.args = [get_new_arg(arg) for arg in link.args]



More information about the Pypy-commit mailing list