[pypy-commit] pypy better-jit-hooks: bah, can be none

fijal noreply at buildbot.pypy.org
Fri Jan 6 11:07:03 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: better-jit-hooks
Changeset: r51060:1d703b15bd80
Date: 2012-01-06 12:06 +0200
http://bitbucket.org/pypy/pypy/changeset/1d703b15bd80/

Log:	bah, can be none

diff --git a/pypy/module/pypyjit/interp_resop.py b/pypy/module/pypyjit/interp_resop.py
--- a/pypy/module/pypyjit/interp_resop.py
+++ b/pypy/module/pypyjit/interp_resop.py
@@ -86,8 +86,11 @@
     if NonConstant(True):
         raise OperationError(space.w_ValueError,
                              space.wrap("for annotation only"))
-    op = ResOperation(no, [AbstractValue()], AbstractValue(),
-                      descr=AbstractDescr())
+    if no:
+        op = ResOperation(no, [AbstractValue()], AbstractValue(),
+                          descr=AbstractDescr())
+    else:
+        op = ResOperation(no, [], None, descr=None)
     return space.wrap(WrappedOp(op, NonConstant(13), NonConstant('repr')))
 
 class WrappedOp(Wrappable):


More information about the pypy-commit mailing list