Fix the ocaml bindings for the bitcode reader.

llvm_get_module_provider() was returning a value of the wrong type.

llvm-svn: 97290
This commit is contained in:
Jeffrey Yasskin 2010-02-27 00:25:18 +00:00
parent d887f1da73
commit 67c0aece75
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ CAMLprim value llvm_get_module_provider(LLVMContextRef C,
if (LLVMGetBitcodeModuleProviderInContext(C, MemBuf, &MP, &Message))
llvm_raise(llvm_bitreader_error_exn, Message);
CAMLreturn((value) MemBuf);
CAMLreturn((value) MP);
}
/* Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule */