Author: Maciej Fijalkowski <[email protected]>
Branch: optresult
Changeset: r77981:0aa906ef32e5
Date: 2015-06-09 11:06 +0200
http://bitbucket.org/pypy/pypy/changeset/0aa906ef32e5/

Log:    This can be NULL here

diff --git a/rpython/jit/metainterp/optimizeopt/heap.py 
b/rpython/jit/metainterp/optimizeopt/heap.py
--- a/rpython/jit/metainterp/optimizeopt/heap.py
+++ b/rpython/jit/metainterp/optimizeopt/heap.py
@@ -447,7 +447,7 @@
                 assert not opinfo.is_virtual()      # it must be a non-virtual
                 if op.getarg(2).type == 'r':
                     fieldinfo = self.getptrinfo(op.getarg(2))
-                    if fieldinfo.is_virtual():
+                    if fieldinfo and fieldinfo.is_virtual():
                         pendingfields.append(op)
                     else:
                         cf.force_lazy_setfield(self, descr)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to