[pypy-svn] r24847 - pypy/branch/explicit-exceptions/translator/c

mwh at codespeak.net mwh at codespeak.net
Thu Mar 23 01:54:30 CET 2006


Author: mwh
Date: Thu Mar 23 01:54:27 2006
New Revision: 24847

Modified:
   pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py
Log:
assert that the call to inline_all() found something to inline.
unfortunately, it does, and yet the inlining still doesn't
work :(


Modified: pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py
==============================================================================
--- pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py	(original)
+++ pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py	Thu Mar 23 01:54:27 2006
@@ -147,7 +147,8 @@
         block.exits[0].exitcase = block.exits[0].llexitcase = None
         # use the dangerous second True flag :-)
         inliner = inline.Inliner(self.translator, graph, proxygraph, True, True)
-        inliner.inline_all()
+        count = inliner.inline_all()
+        assert count > 0, "didn't inline"
         block.exits[0].exitcase = block.exits[0].llexitcase = False
 
     def create_proxy_graph(self, op):



More information about the Pypy-commit mailing list