[macruby-changes] [4068] MacRuby/trunk/bridgesupport.cpp

source_changes at macosforge.org source_changes at macosforge.org
Tue May 11 14:22:20 PDT 2010


Revision: 4068
          http://trac.macosforge.org/projects/ruby/changeset/4068
Author:   lsansonetti at apple.com
Date:     2010-05-11 14:22:15 -0700 (Tue, 11 May 2010)
Log Message:
-----------
be careful when compiling the struct #new method, some fields might be large structures

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

Modified: MacRuby/trunk/bridgesupport.cpp
===================================================================
--- MacRuby/trunk/bridgesupport.cpp	2010-05-11 05:02:44 UTC (rev 4067)
+++ MacRuby/trunk/bridgesupport.cpp	2010-05-11 21:22:15 UTC (rev 4068)
@@ -228,7 +228,8 @@
 	Value *index = ConstantInt::get(Int32Ty, i);
 	Value *arg = GetElementPtrInst::Create(argv, index, "", bb);
 	arg = new LoadInst(arg, "", bb);
-	arg = compile_conversion_to_c(ftype, arg, fval);
+	compile_conversion_to_c(ftype, arg, fval);
+	arg = new LoadInst(fval, "", bb);
 	arg = compile_conversion_to_ruby(ftype, llvm_type, arg);
 
 	fields.push_back(arg);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100511/6a825203/attachment.html>


More information about the macruby-changes mailing list