[pypy-commit] pypy default: Add an assert.

arigo noreply at buildbot.pypy.org
Tue Aug 2 19:54:02 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46213:2aa03c0b2832
Date: 2011-08-02 17:14 +0200
http://bitbucket.org/pypy/pypy/changeset/2aa03c0b2832/

Log:	Add an assert.

diff --git a/pypy/jit/metainterp/compile.py b/pypy/jit/metainterp/compile.py
--- a/pypy/jit/metainterp/compile.py
+++ b/pypy/jit/metainterp/compile.py
@@ -668,6 +668,7 @@
     def handle_fail(self, metainterp_sd, jitdriver_sd):
         cpu = metainterp_sd.cpu
         exception = cpu.grab_exc_value()
+        assert exception, "PropagateExceptionDescr: no exception??"
         raise metainterp_sd.ExitFrameWithExceptionRef(cpu, exception)
 
 propagate_exception_descr = PropagateExceptionDescr()


More information about the pypy-commit mailing list