[pypy-commit] pypy default: Fix for test_random

arigo noreply at buildbot.pypy.org
Mon Nov 9 08:11:26 EST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r80612:6eddbb5218e6
Date: 2015-11-09 13:51 +0100
http://bitbucket.org/pypy/pypy/changeset/6eddbb5218e6/

Log:	Fix for test_random

diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsupport/rewrite.py
--- a/rpython/jit/backend/llsupport/rewrite.py
+++ b/rpython/jit/backend/llsupport/rewrite.py
@@ -207,6 +207,7 @@
         # it's hard to test all cases).  Rewrite it away.
         value = (opnum == rop.GUARD_FALSE)
         op1 = ResOperation(rop.SAME_AS_I, [ConstInt(value)])
+        op1.setint(value)
         self.emit_op(op1)
         lst = op.getfailargs()[:]
         lst[i] = op1


More information about the pypy-commit mailing list