Modified: MacRuby/branches/experimental/roxor.cpp (1491 => 1492)
--- MacRuby/branches/experimental/roxor.cpp 2009-04-26 08:26:47 UTC (rev 1491)
+++ MacRuby/branches/experimental/roxor.cpp 2009-04-27 00:53:39 UTC (rev 1492)
@@ -9399,7 +9399,8 @@
// Third is an array of arguments.
Value *argv;
if (argc == 0) {
- argv = compile_const_pointer(NULL);
+ argv = new BitCastInst(compile_const_pointer(NULL), RubyObjPtrTy,
+ "", bb);
}
else {
argv = new AllocaInst(RubyObjTy, ConstantInt::get(Type::Int32Ty, argc),