[pypy-svn] r31634 - pypy/dist/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Fri Aug 25 14:09:47 CEST 2006
Author: arigo
Date: Fri Aug 25 14:09:44 2006
New Revision: 31634
Modified:
pypy/dist/pypy/translator/c/wrapper.py
Log:
(pedronis, arigo)
Oups. Set the concretetype of the new graph's returnvar explicitly.
Modified: pypy/dist/pypy/translator/c/wrapper.py
==============================================================================
--- pypy/dist/pypy/translator/c/wrapper.py (original)
+++ pypy/dist/pypy/translator/c/wrapper.py Fri Aug 25 14:09:44 2006
@@ -144,6 +144,7 @@
translator.graphs.append(wgraph)
block.operations[:] = newops
block.closeblock(Link([vresult], wgraph.returnblock))
+ wgraph.getreturnvar().concretetype = PyObjPtr
checkgraph(wgraph)
if translator.rtyper is not None:
@@ -194,6 +195,7 @@
vres = newgraph.getreturnvar()
ann.setbinding(vres, s_None)
+ vres.concretetype = Void
checkgraph(newgraph)
# pretend to be the same function, as we actually
# will become inlined.
More information about the Pypy-commit
mailing list