aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2011-08-02 17:14:35 +0200
committerArmin Rigo <arigo@tunes.org>2011-08-02 17:14:35 +0200
commitaa22c805929ea646f0987718443190383703983a (patch)
tree83f6c4703c441d0c36c1b7e9764657926afc1236
parentFix for 64-bit. It's a bit more complicated, but not much. (diff)
downloadpypy-aa22c805929ea646f0987718443190383703983a.tar.gz
pypy-aa22c805929ea646f0987718443190383703983a.tar.bz2
pypy-aa22c805929ea646f0987718443190383703983a.zip
Add an assert.
-rw-r--r--pypy/jit/metainterp/compile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pypy/jit/metainterp/compile.py b/pypy/jit/metainterp/compile.py
index 1c9efae1b8..3b117726d7 100644
--- a/pypy/jit/metainterp/compile.py
+++ b/pypy/jit/metainterp/compile.py
@@ -668,6 +668,7 @@ class PropagateExceptionDescr(AbstractFailDescr):
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()