[pypy-svn] r71689 - pypy/trunk/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Wed Mar 3 03:39:21 CET 2010


Author: fijal
Date: Wed Mar  3 03:39:19 2010
New Revision: 71689

Modified:
   pypy/trunk/pypy/jit/metainterp/optimizeopt.py
Log:
Improve assert


Modified: pypy/trunk/pypy/jit/metainterp/optimizeopt.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/optimizeopt.py	(original)
+++ pypy/trunk/pypy/jit/metainterp/optimizeopt.py	Wed Mar  3 03:39:19 2010
@@ -819,7 +819,7 @@
         value = self.getvalue(op.args[0])
         if value.is_virtual():
             # optimizefindnode should ensure that fieldvalue is found
-            assert isinstance(value, VirtualValue)
+            assert isinstance(value, AbstractVirtualValue)
             fieldvalue = value.getfield(op.descr, None)
             assert fieldvalue is not None
             self.make_equal_to(op.result, fieldvalue)



More information about the Pypy-commit mailing list