Author: Maciej Fijalkowski <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit