[pypy-svn] r71311 - pypy/branch/string-promote/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Thu Feb 18 22:34:39 CET 2010


Author: fijal
Date: Thu Feb 18 22:34:37 2010
New Revision: 71311

Modified:
   pypy/branch/string-promote/pypy/jit/metainterp/codewriter.py
Log:
Fix the assertion


Modified: pypy/branch/string-promote/pypy/jit/metainterp/codewriter.py
==============================================================================
--- pypy/branch/string-promote/pypy/jit/metainterp/codewriter.py	(original)
+++ pypy/branch/string-promote/pypy/jit/metainterp/codewriter.py	Thu Feb 18 22:34:37 2010
@@ -836,7 +836,7 @@
         if hints.get('promote') and op.args[0].concretetype is not lltype.Void:
             self.minimize_variables()
             from pypy.rpython.lltypesystem.rstr import STR
-            assert op.args[0].concretetype != STR
+            assert op.args[0].concretetype != lltype.Ptr(STR)
             self.emit('guard_value', self.var_position(op.args[0]))
             self.register_var(op.result)
         else:



More information about the Pypy-commit mailing list