Permalink
Browse files

oops

  • Loading branch information...
1 parent fc7c631 commit 3cac4104c61df27570b923572c79a25c1f5813dd @lrz lrz committed Apr 27, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 roxor.cpp
View
@@ -9399,7 +9399,8 @@ RoxorCompiler::compile_ffi_function(void *stub, void *imp, int argc)
// 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),

0 comments on commit 3cac410

Please sign in to comment.