Skip to content

Commit c66eb25

Browse files
committed
[OCaml] Fix build
Fix a mistake introduced in #163979: We should stick with the deprecated LLVMGetGlobalContext() API in this file, as getGlobalContextForCAPI() is a C++ API that is not available here.
1 parent b3a5870 commit c66eb25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/bindings/ocaml/llvm/llvm_ocaml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ value llvm_dispose_context(value C) {
240240

241241
/* unit -> llcontext */
242242
value llvm_global_context(value Unit) {
243-
return to_val(getGlobalContextForCAPI());
243+
return to_val(LLVMGetGlobalContext());
244244
}
245245

246246
/* llcontext -> string -> int */

0 commit comments

Comments
 (0)