[pypy-commit] pypy optresult: use proper new interface

cfbolz noreply at buildbot.pypy.org
Thu Jun 18 18:20:50 CEST 2015


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: optresult
Changeset: r78187:1ba1b0efab29
Date: 2015-06-18 18:15 +0200
http://bitbucket.org/pypy/pypy/changeset/1ba1b0efab29/

Log:	use proper new interface

diff --git a/rpython/jit/metainterp/optimizeopt/intbounds.py b/rpython/jit/metainterp/optimizeopt/intbounds.py
--- a/rpython/jit/metainterp/optimizeopt/intbounds.py
+++ b/rpython/jit/metainterp/optimizeopt/intbounds.py
@@ -150,7 +150,7 @@
                         sum = intmask(arg2.getint() + prod_arg2.getint())
                         arg1 = prod_arg1
                         arg2 = ConstInt(sum)
-                        op = op.copy_and_change(rop.INT_ADD, args=[arg1, arg2])
+                        op = self.replace_op_with(op, rop.INT_ADD, args=[arg1, arg2])
 
         self.emit_operation(op)
         if self.is_raw_ptr(op.getarg(0)) or self.is_raw_ptr(op.getarg(1)):


More information about the pypy-commit mailing list