[pypy-commit] pypy unroll-if-alt: bad things happen if this None

gutworth noreply at buildbot.pypy.org
Mon Aug 1 23:16:23 CEST 2011


Author: Benjamin Peterson <benjamin at python.org>
Branch: unroll-if-alt
Changeset: r46170:29ff9dcb475b
Date: 2011-08-01 16:16 -0500
http://bitbucket.org/pypy/pypy/changeset/29ff9dcb475b/

Log:	bad things happen if this None

diff --git a/pypy/annotation/specialize.py b/pypy/annotation/specialize.py
--- a/pypy/annotation/specialize.py
+++ b/pypy/annotation/specialize.py
@@ -372,4 +372,5 @@
     return maybe_star_args(funcdesc, key, args_s)
 
 def specialize_call_location(funcdesc, args_s, op):
+    assert op is not None
     return maybe_star_args(funcdesc, op, args_s)


More information about the pypy-commit mailing list