[pypy-svn] pypy out-of-line-guards: another oops

fijal commits-noreply at bitbucket.org
Thu Dec 23 09:55:39 CET 2010


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: out-of-line-guards
Changeset: r40199:0f21cedb27d5
Date: 2010-12-23 10:55 +0200
http://bitbucket.org/pypy/pypy/changeset/0f21cedb27d5/

Log:	another oops

diff --git a/pypy/jit/metainterp/pyjitpl.py b/pypy/jit/metainterp/pyjitpl.py
--- a/pypy/jit/metainterp/pyjitpl.py
+++ b/pypy/jit/metainterp/pyjitpl.py
@@ -1185,7 +1185,7 @@
             if resbox is not None:
                 self.make_result_of_lastop(resbox)
             self.metainterp.vable_after_residual_call()
-            if effectinfo.extraeffect >= effectinfo.EF_FORCES_JIT_INVARIANT:
+            if effectinfo is None or effectinfo.extraeffect >= effectinfo.EF_FORCES_JIT_INVARIANT:
                 self.generate_guard(rop.GUARD_NOT_INVARIANT, None)
             self.generate_guard(rop.GUARD_NOT_FORCED, None)
             self.metainterp.handle_possible_exception()


More information about the Pypy-commit mailing list