Skip to content

Commit 6f2d81a

Browse files
committed
[OCaml] Remove test with invalid usage of #dbg_declare
add a #dbg_declare to an i32 argument. The change introduced in ecd4c08 caught this incorrect usage of #dbg_declare in the OCaml tests.
1 parent fcead25 commit 6f2d81a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

llvm/test/Bindings/OCaml/debuginfo.ml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -290,18 +290,6 @@ let test_variables f dibuilder file_di fun_di =
290290
let () = Printf.printf "%s\n" (Llvm.string_of_lldbgrecord vdi) in
291291
(* CHECK: dbg_declare(ptr %my_alloca, ![[#]], !DIExpression(), ![[#]])
292292
*)
293-
let arg0 = (Llvm.params f).(0) in
294-
let arg_var = Llvm_debuginfo.dibuild_create_parameter_variable dibuilder ~scope:fun_di
295-
~name:"my_arg" ~argno:1 ~file:file_di ~line:10 ~ty
296-
~always_preserve:false flags_zero
297-
in
298-
let argdi = Llvm_debuginfo.dibuild_insert_declare_before dibuilder ~storage:arg0
299-
~var_info:arg_var ~expr:(Llvm_debuginfo.dibuild_expression dibuilder [||])
300-
~location ~instr:entry_term
301-
in
302-
let () = Printf.printf "%s\n" (Llvm.string_of_lldbgrecord argdi) in
303-
(* CHECK: dbg_declare(i32 %0, ![[#]], !DIExpression(), ![[#]])
304-
*)
305293
()
306294

307295
let test_types dibuilder file_di m_di =

0 commit comments

Comments
 (0)