[macruby-changes] [1971] MacRuby/branches/experimental/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 2 12:08:08 PDT 2009


Revision: 1971
          http://trac.macosforge.org/projects/ruby/changeset/1971
Author:   lsansonetti at apple.com
Date:     2009-07-02 12:08:08 -0700 (Thu, 02 Jul 2009)
Log Message:
-----------
apparently ConstantInt::get() with a signed value will not compile for ppc

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

Modified: MacRuby/branches/experimental/compiler.cpp
===================================================================
--- MacRuby/branches/experimental/compiler.cpp	2009-07-02 05:14:36 UTC (rev 1970)
+++ MacRuby/branches/experimental/compiler.cpp	2009-07-02 19:08:08 UTC (rev 1971)
@@ -4602,7 +4602,7 @@
 
 	Instruction *call = new MallocInst(Type::Int32Ty, "");
 	Instruction *assign1 =
-	    new StoreInst(ConstantInt::get(Type::Int32Ty, -1), call, "");
+	    new StoreInst(ConstantInt::getSigned(Type::Int32Ty, -1), call, "");
 	Instruction *assign2 = new StoreInst(call, gvar, "");
 
 	list.insert(list.begin(), assign2);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090702/43a99e51/attachment.html>


More information about the macruby-changes mailing list