[pypy-commit] pypy default: Fix for jit-simplify-backendintf.
arigo
noreply at buildbot.pypy.org
Tue Dec 13 22:29:36 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r50477:869dcd3db31a
Date: 2011-12-13 21:52 +0100
http://bitbucket.org/pypy/pypy/changeset/869dcd3db31a/
Log: Fix for jit-simplify-backendintf.
diff --git a/pypy/module/pypyjit/test_pypy_c/model.py b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -210,9 +210,9 @@
def entry_bridge_ops(self, *args, **kwds):
ops = list(self._allops(*args, **kwds))
labels = [op for op in ops if op.name == 'label']
- assert ops.index(labels[0]) == 0
- i = ops.index(labels[1])
- return ops[1:i]
+ i0 = ops.index(labels[0])
+ i1 = ops.index(labels[1])
+ return ops[i0+1:i1]
@property
def chunks(self):
More information about the pypy-commit
mailing list