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

arigo at codespeak.net arigo at codespeak.net
Wed Dec 19 18:42:39 CET 2007


Author: arigo
Date: Wed Dec 19 18:42:38 2007
New Revision: 49941

Modified:
   pypy/dist/pypy/translator/llvm/database.py
Log:
Works with a HEAD revision of llvm.


Modified: pypy/dist/pypy/translator/llvm/database.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/database.py	(original)
+++ pypy/dist/pypy/translator/llvm/database.py	Wed Dec 19 18:42:38 2007
@@ -598,10 +598,9 @@
         if isinstance(value, llarena.RoundedUpForAllocation):
             # XXX not supported when used in a CompositeOffset
             r_basesize = self.repr_offset(value.basesize)
-            # XXX XXX XXX we hit an llvm assertion with the following
-            # expression! for now let's not align anything :-(
-            #return "and(i32 add(i32 %s, i32 7), i32 -8)" % r_basesize
-            return r_basesize
+            # Note that the following expression is known to crash 'llc';
+            # you may need to upgrade llvm.
+            return "and(i32 add(i32 %s, i32 7), i32 -8)" % r_basesize
 
         from_, indices, to = self.get_offset(value, [])
 



More information about the Pypy-commit mailing list