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

arigo at codespeak.net arigo at codespeak.net
Thu May 26 18:38:36 CEST 2005


Author: arigo
Date: Thu May 26 18:38:36 2005
New Revision: 12811

Modified:
   pypy/dist/pypy/rpython/rtyper.py
Log:
Give the return variable the proper low-level type too.


Modified: pypy/dist/pypy/rpython/rtyper.py
==============================================================================
--- pypy/dist/pypy/rpython/rtyper.py	(original)
+++ pypy/dist/pypy/rpython/rtyper.py	Thu May 26 18:38:36 2005
@@ -37,8 +37,7 @@
         pending = self.annotator.annotated.keys()
         while pending:
             for block in pending:
-                if block.operations != ():
-                    self.specialize_block(block)
+                self.specialize_block(block)
                 already_seen[block] = True
             pending = [block for block in self.annotator.annotated
                              if block not in already_seen]
@@ -65,6 +64,8 @@
             self.setconcretetype(a)
 
         # specialize all the operations, as far as possible
+        if block.operations == ():   # return or except block
+            return
         newops = []
         varmapping = {}
         for op in block.operations:



More information about the Pypy-commit mailing list