[pypy-commit] pypy optresult: try to fix annotation
fijal
noreply at buildbot.pypy.org
Wed Jun 3 18:10:49 CEST 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77833:fa7247b692e1
Date: 2015-06-03 18:10 +0200
http://bitbucket.org/pypy/pypy/changeset/fa7247b692e1/
Log: try to fix annotation
diff --git a/rpython/jit/metainterp/quasiimmut.py b/rpython/jit/metainterp/quasiimmut.py
--- a/rpython/jit/metainterp/quasiimmut.py
+++ b/rpython/jit/metainterp/quasiimmut.py
@@ -1,4 +1,4 @@
-from rpython.rtyper.lltypesystem import lltype
+from rpython.rtyper.lltypesystem import lltype, llmemory
from rpython.rtyper import rclass
from rpython.rtyper.annlowlevel import cast_base_ptr_to_instance
from rpython.jit.metainterp.history import AbstractDescr, ConstPtr, ConstInt,\
@@ -104,7 +104,7 @@
# those fields are necessary for translation without quasi immutable
# fields
struct = None
- fielddescr = None
+ fielddescr = lltype.nullptr(llmemory.GCREF.TO)
def __init__(self, cpu, struct, fielddescr, mutatefielddescr):
self.cpu = cpu
More information about the pypy-commit
mailing list