[pypy-svn] r35862 - pypy/dist/pypy/translator/c

ac at codespeak.net ac at codespeak.net
Mon Dec 18 20:24:35 CET 2006


Author: ac
Date: Mon Dec 18 20:24:35 2006
New Revision: 35862

Modified:
   pypy/dist/pypy/translator/c/exceptiontransform.py
Log:
Make sure the exceptblock is closed and has an empty tuple for operations.

Modified: pypy/dist/pypy/translator/c/exceptiontransform.py
==============================================================================
--- pypy/dist/pypy/translator/c/exceptiontransform.py	(original)
+++ pypy/dist/pypy/translator/c/exceptiontransform.py	Mon Dec 18 20:24:35 2006
@@ -234,6 +234,9 @@
         # attach an except block -- let's hope that nobody uses it
         graph.exceptblock = Block([Variable('etype'),   # exception class
                                    Variable('evalue')])  # exception value
+        graph.exceptblock.operations = ()
+        graph.exceptblock.closeblock()
+        
         result = Variable()
         result.concretetype = lltype.Void
         block.operations = [SpaceOperation(


More information about the pypy-svn mailing list