Author: Hakan Ardo <[email protected]>
Branch: 
Changeset: r54950:4dfde37c4e3d
Date: 2012-05-07 20:34 +0200
http://bitbucket.org/pypy/pypy/changeset/4dfde37c4e3d/

Log:    If OptRewrite is disabled SAME_AS might show up here and foring
        arguments of some SAME_AS produced by unrolling might lead to a
        crash

diff --git a/pypy/jit/metainterp/optimizeopt/earlyforce.py 
b/pypy/jit/metainterp/optimizeopt/earlyforce.py
--- a/pypy/jit/metainterp/optimizeopt/earlyforce.py
+++ b/pypy/jit/metainterp/optimizeopt/earlyforce.py
@@ -7,7 +7,8 @@
         opnum = op.getopnum()
         if (opnum != rop.SETFIELD_GC and 
             opnum != rop.SETARRAYITEM_GC and
-            opnum != rop.QUASIIMMUT_FIELD):
+            opnum != rop.QUASIIMMUT_FIELD and
+            opnum != rop.SAME_AS):
                
             for arg in op.getarglist():
                 if arg in self.optimizer.values:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to