[pypy-commit] pypy kill-gen-store-back-in: fix for tests

fijal noreply at buildbot.pypy.org
Sun May 26 17:22:19 CEST 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: kill-gen-store-back-in
Changeset: r64571:1aed55951cb9
Date: 2013-05-26 17:21 +0200
http://bitbucket.org/pypy/pypy/changeset/1aed55951cb9/

Log:	fix for tests

diff --git a/rpython/jit/backend/model.py b/rpython/jit/backend/model.py
--- a/rpython/jit/backend/model.py
+++ b/rpython/jit/backend/model.py
@@ -305,7 +305,8 @@
 
     def bh_force_virtualizable(self, v, descr):
         vinfo = descr.get_vinfo()
-        vinfo.clear_vable_token(v)
+        if vinfo is not None:
+            vinfo.clear_vable_token(v)
 
 class CompiledLoopToken(object):
     asmmemmgr_blocks = None


More information about the pypy-commit mailing list