Author: Richard Plangger <planri...@gmail.com> Branch: memop-simplify3 Changeset: r81610:f99df61537a8 Date: 2016-01-07 14:57 +0100 http://bitbucket.org/pypy/pypy/changeset/f99df61537a8/
Log: translation fixes for the changes in rewrite.py diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsupport/rewrite.py --- a/rpython/jit/backend/llsupport/rewrite.py +++ b/rpython/jit/backend/llsupport/rewrite.py @@ -536,6 +536,7 @@ # replaced with another constant greater than 0.) #o = ResOperation(rop.ZERO_ARRAY, [v_arr, self.c_zero, v_length], # descr=arraydescr) + assert isinstance(arraydescr, ArrayDescr) scale = arraydescr.itemsize v_length_scaled = v_length if not isinstance(v_length, ConstInt): @@ -664,6 +665,7 @@ for op in self.last_zero_arrays: assert op.getopnum() == rop.ZERO_ARRAY descr = op.getdescr() + assert isinstance(descr, ArrayDescr) scale = descr.itemsize box = op.getarg(0) try: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit