[pypy-svn] r13203 - pypy/branch/translator-without-old-genc/c
arigo at codespeak.net
arigo at codespeak.net
Wed Jun 8 22:59:38 CEST 2005
Author: arigo
Date: Wed Jun 8 22:59:37 2005
New Revision: 13203
Modified:
pypy/branch/translator-without-old-genc/c/funcgen.py
Log:
Merge.
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:59:37 2005
@@ -412,11 +412,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)
+ result = []
+ assert self.lltypemap[op.args[0]] == self.lltypemap[op.result]
+ if self.lltypemap[op.result] != Void:
+ result.append('%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):
More information about the Pypy-commit
mailing list