[pypy-commit] pypy faster-rstruct-2: fix test_gc_load_indexed_str

antocuni pypy.commits at gmail.com
Mon May 22 18:27:19 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: faster-rstruct-2
Changeset: r91381:ad1105da8697
Date: 2017-05-23 00:26 +0200
http://bitbucket.org/pypy/pypy/changeset/ad1105da8697/

Log:	fix test_gc_load_indexed_str

diff --git a/rpython/translator/backendopt/writeanalyze.py b/rpython/translator/backendopt/writeanalyze.py
--- a/rpython/translator/backendopt/writeanalyze.py
+++ b/rpython/translator/backendopt/writeanalyze.py
@@ -88,7 +88,7 @@
             # get the effect for the first component and modify it if
             # necessary
             sub_offsets = ofs.offsets
-            effect = self._get_effect_for_offset(sub_offsets[0])
+            effect = self._get_effect_for_offset(sub_offsets[0], prefix)
             for sub_ofs in sub_offsets[1:]:
                 if isinstance(sub_ofs, llmemory.ArrayItemsOffset):
                     # reading from the middle of an array is the same as


More information about the pypy-commit mailing list