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

mwh at codespeak.net mwh at codespeak.net
Sat Jun 3 19:41:31 CEST 2006


Author: mwh
Date: Sat Jun  3 19:41:29 2006
New Revision: 28192

Modified:
   pypy/dist/pypy/rpython/llinterp.py
Log:
sanity-check the return value of unsafe_call in the llinterpreter.  didn't
catch the problem we were looking for, but probably a good idea anyway.


Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py	(original)
+++ pypy/dist/pypy/rpython/llinterp.py	Sat Jun  3 19:41:29 2006
@@ -512,6 +512,8 @@
             args.append(arg.concretetype._defl())
         frame = self.__class__(graph, args, self.llinterpreter, self)
         result = frame.eval()
+        from pypy.translator.stackless.frame import storage_type
+        assert storage_type(lltype.typeOf(result)) == TGT
         return lltype._cast_whatever(TGT, result)
 
     def op_malloc(self, obj):



More information about the Pypy-commit mailing list