[macruby-changes] [4796] MacRuby/branches/0.7/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 15 14:20:57 PDT 2010


Revision: 4796
          http://trac.macosforge.org/projects/ruby/changeset/4796
Author:   lsansonetti at apple.com
Date:     2010-10-15 14:20:54 -0700 (Fri, 15 Oct 2010)
Log Message:
-----------
backport r4767 from trunk

Revision Links:
--------------
    http://trac.macosforge.org/projects/ruby/changeset/4767

Modified Paths:
--------------
    MacRuby/branches/0.7/compiler.cpp

Modified: MacRuby/branches/0.7/compiler.cpp
===================================================================
--- MacRuby/branches/0.7/compiler.cpp	2010-10-14 13:58:37 UTC (rev 4795)
+++ MacRuby/branches/0.7/compiler.cpp	2010-10-15 21:20:54 UTC (rev 4796)
@@ -5483,7 +5483,7 @@
 		    funcptr
 		};
 		CallInst::Create(initBlockFunc, args, args + 2, "", bb);
-		return block_lit;
+		return new BitCastInst(block_lit, PtrTy, "", bb);
 	    }
 	    break;
 
@@ -5493,7 +5493,6 @@
 		if (bs_boxed != NULL) {
 		    return compile_get_opaque_data(val, bs_boxed, slot);
 		}
-
 		return compile_get_cptr(val, type, slot);
 	    }
 	    break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101015/3bfa866b/attachment.html>


More information about the macruby-changes mailing list