[pypy-commit] pypy arm-backend-2: Fix for tests

bivab noreply at buildbot.pypy.org
Fri Mar 9 18:27:57 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r53281:0118e3b1e976
Date: 2012-03-09 09:36 +0000
http://bitbucket.org/pypy/pypy/changeset/0118e3b1e976/

Log:	Fix for tests

diff --git a/pypy/jit/backend/llgraph/llimpl.py b/pypy/jit/backend/llgraph/llimpl.py
--- a/pypy/jit/backend/llgraph/llimpl.py
+++ b/pypy/jit/backend/llgraph/llimpl.py
@@ -931,7 +931,7 @@
 
     def op_call(self, calldescr, func, *args):
         effectinfo = calldescr.get_extra_info()
-        if effectinfo is not None:
+        if effectinfo is not None and hasattr(effectinfo, 'oopspecindex'):
             oopspecindex = effectinfo.oopspecindex
             if oopspecindex == EffectInfo.OS_MATH_SQRT:
                 return do_math_sqrt(args[0])


More information about the pypy-commit mailing list