fix a jit compilation error that could happen with the new llvm
--- 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 {