[pypy-svn] r13201 - pypy/branch/translator-without-old-genc/c

arigo at codespeak.net arigo at codespeak.net
Wed Jun 8 22:19:54 CEST 2005


Author: arigo
Date: Wed Jun  8 22:19:53 2005
New Revision: 13201

Modified:
   pypy/branch/translator-without-old-genc/c/funcgen.py
Log:
Merge the fix from the trunk.


Modified: pypy/branch/translator-without-old-genc/c/funcgen.py
==============================================================================
--- pypy/branch/translator-without-old-genc/c/funcgen.py	(original)
+++ pypy/branch/translator-without-old-genc/c/funcgen.py	Wed Jun  8 22:19:53 2005
@@ -411,6 +411,14 @@
                   ]
         return '\t'.join(result)
 
+    def OP_SAME_AS(self, op, err):
+        result = ['%s = %s;' % (self.expr(op.result),
+                                self.expr(op.args[0]))]
+        line = self.cincref(op.result)
+        if line:
+            result.append(line)
+        return '\t'.join(result)
+
     def cincref(self, v):
         T = self.lltypemap[v]
         return self.db.cincrefstmt(v.name, T)



More information about the Pypy-commit mailing list