From 9a8b7c41c3cb0301cb7311523c60cc3be72ec110 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 2 Mar 2010 23:59:08 +0000 Subject: [PATCH] Use the ocaml tag 0 since we are just returning an option value. llvm-svn: 97612 --- bindings/ocaml/executionengine/executionengine_ocaml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ocaml/executionengine/executionengine_ocaml.c b/bindings/ocaml/executionengine/executionengine_ocaml.c index d12a9f7acde..1d3e57a705b 100644 --- a/bindings/ocaml/executionengine/executionengine_ocaml.c +++ b/bindings/ocaml/executionengine/executionengine_ocaml.c @@ -226,7 +226,7 @@ CAMLprim value llvm_ee_find_function(value Name, LLVMExecutionEngineRef EE) { LLVMValueRef Found; if (LLVMFindFunction(EE, String_val(Name), &Found)) CAMLreturn(Val_unit); - Option = alloc(1, 1); + Option = alloc(1, 0); Field(Option, 0) = Val_op(Found); CAMLreturn(Option); }