Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r52568:2ea8061c4a47
Date: 2012-02-16 20:45 +0100
http://bitbucket.org/pypy/pypy/changeset/2ea8061c4a47/

Log:    Fix

diff --git a/pypy/translator/stm/transform.py b/pypy/translator/stm/transform.py
--- a/pypy/translator/stm/transform.py
+++ b/pypy/translator/stm/transform.py
@@ -89,7 +89,8 @@
             newoperations.append(op)
             return
         if op.args[0].concretetype.TO._gckind == 'raw':
-            turn_inevitable(newoperations, op.opname + '-raw')
+            if not is_immutable(op):
+                turn_inevitable(newoperations, op.opname + '-raw')
             newoperations.append(op)
             return
         if is_immutable(op):
@@ -110,7 +111,8 @@
             newoperations.append(op)
             return
         if op.args[0].concretetype.TO._gckind == 'raw':
-            turn_inevitable(newoperations, op.opname + '-raw')
+            if not is_immutable(op):
+                turn_inevitable(newoperations, op.opname + '-raw')
             newoperations.append(op)
             return
         if is_immutable(op):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to