[pypy-svn] r32506 - pypy/branch/timeshift-refactoring/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Tue Sep 19 19:01:47 CEST 2006


Author: arigo
Date: Tue Sep 19 19:01:45 2006
New Revision: 32506

Modified:
   pypy/branch/timeshift-refactoring/pypy/rpython/rtyper.py
Log:
(arre, arigo)

Allow high-level graphs to contain switches with a 'default' link too.


Modified: pypy/branch/timeshift-refactoring/pypy/rpython/rtyper.py
==============================================================================
--- pypy/branch/timeshift-refactoring/pypy/rpython/rtyper.py	(original)
+++ pypy/branch/timeshift-refactoring/pypy/rpython/rtyper.py	Tue Sep 19 19:01:45 2006
@@ -375,7 +375,7 @@
             self.insert_link_conversions(extrablock)
 
     def _convert_link(self, block, link):  
-        if link.exitcase is not None:
+        if link.exitcase is not None and link.exitcase != 'default':
             if isinstance(block.exitswitch, Variable):
                 r_case = self.bindingrepr(block.exitswitch)
             else:



More information about the Pypy-commit mailing list