Author: David Schneider <david.schnei...@picle.org>
Branch: remove-globals-in-jit
Changeset: r59643:69f76417b7eb
Date: 2012-12-31 13:43 +0100
http://bitbucket.org/pypy/pypy/changeset/69f76417b7eb/

Log:    add sanity check (for tests)

diff --git a/pypy/jit/backend/llsupport/rewrite.py 
b/pypy/jit/backend/llsupport/rewrite.py
--- a/pypy/jit/backend/llsupport/rewrite.py
+++ b/pypy/jit/backend/llsupport/rewrite.py
@@ -68,7 +68,7 @@
             # ----------
             self.newops.append(op)
         # ---------- FINISH ----------
-        if self.newops[-1].getopnum() == rop.FINISH:
+        if len(self.newops) != 0 and self.newops[-1].getopnum() == rop.FINISH:
             self.handle_finish(self.newops.pop())
         # ----------
         return self.newops
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to