Revision
5277
Author
lsansonetti@apple.com
Date
2011-03-14 11:50:42 -0700 (Mon, 14 Mar 2011)

Log Message

fix a jit compilation error that could happen with the new llvm

Modified Paths

Diff

Modified: MacRuby/trunk/compiler.cpp (5276 => 5277)


--- MacRuby/trunk/compiler.cpp	2011-03-11 23:33:02 UTC (rev 5276)
+++ MacRuby/trunk/compiler.cpp	2011-03-14 18:50:42 UTC (rev 5277)
@@ -6769,6 +6769,7 @@
 	bb = BasicBlock::Create(context, "EntryBlock", f);
 
 	argc = CallInst::Create(lengthArrayFunc, argv_ary, "", bb);
+	argc = new TruncInst(argc, Int32Ty, "", bb);
 	argv = CallInst::Create(ptrArrayFunc, argv_ary, "", bb);
     }
     else {