summaryrefslogtreecommitdiff
path: root/test/Bindings/Ocaml/scalar_opts.ml
diff options
context:
space:
mode:
Diffstat (limited to 'test/Bindings/Ocaml/scalar_opts.ml')
-rw-r--r--test/Bindings/Ocaml/scalar_opts.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Bindings/Ocaml/scalar_opts.ml b/test/Bindings/Ocaml/scalar_opts.ml
index 0a65db996b..936a0524f8 100644
--- a/test/Bindings/Ocaml/scalar_opts.ml
+++ b/test/Bindings/Ocaml/scalar_opts.ml
@@ -19,7 +19,7 @@ let suite name f =
(*===-- Fixture -----------------------------------------------------------===*)
let filename = Sys.argv.(1)
-let m = create_module filename
+let m = create_module (global_context ()) filename
let mp = ModuleProvider.create m
@@ -30,7 +30,7 @@ let test_transforms () =
let fty = function_type void_type [| |] in
let fn = define_function "fn" fty m in
- ignore (build_ret_void (builder_at_end (entry_block fn)));
+ ignore (build_ret_void (builder_at_end (global_context ()) (entry_block fn)));
let td = TargetData.create (target_triple m) in