[pypy-svn] r39779 - pypy/dist/pypy/translator/llvm

rxe at codespeak.net rxe at codespeak.net
Sat Mar 3 12:33:48 CET 2007


Author: rxe
Date: Sat Mar  3 12:33:46 2007
New Revision: 39779

Modified:
   pypy/dist/pypy/translator/llvm/structnode.py
Log:
this is needed to pass subarray tests

Modified: pypy/dist/pypy/translator/llvm/structnode.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/structnode.py	(original)
+++ pypy/dist/pypy/translator/llvm/structnode.py	Sat Mar  3 12:33:46 2007
@@ -199,6 +199,11 @@
             self.get_ref(),
             pos)
 
+    def setup(self):
+        if isinstance(self.value, lltype._subarray):
+            return
+        super(FixedSizeArrayNode, self).setup()
+
 
 class StructVarsizeNode(StructNode):
     """ A varsize struct constant.  Can simply contain



More information about the Pypy-commit mailing list