[macruby-changes] [4973] MacRuby/trunk/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 2 19:45:50 PST 2010


Revision: 4973
          http://trac.macosforge.org/projects/ruby/changeset/4973
Author:   lsansonetti at apple.com
Date:     2010-12-02 19:45:47 -0800 (Thu, 02 Dec 2010)
Log Message:
-----------
fix JIT compilation on earlier LLVMs

Modified Paths:
--------------
    MacRuby/trunk/compiler.cpp

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2010-12-03 03:27:36 UTC (rev 4972)
+++ MacRuby/trunk/compiler.cpp	2010-12-03 03:45:47 UTC (rev 4973)
@@ -5525,9 +5525,11 @@
 		// A C-level block. We allocate on the auto heap the literal
 		// structure following the ABI, initialize it then pass
 		// a pointer to it.
-		Value *block_lit = compile_xmalloc(GET_CORE()->get_sizeof(BlockLiteralTy));
+		Value *block_lit =
+		    compile_xmalloc(GET_CORE()->get_sizeof(BlockLiteralTy));
 		Value *args[] = {
-		    block_lit,
+		    new BitCastInst(block_lit,
+			    PointerType::getUnqual(BlockLiteralTy), "", bb),
 		    funcptr,
 		    val
 		};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101202/07b84aee/attachment-0001.html>


More information about the macruby-changes mailing list