[llvm] [OCaml] Remove test with invalid usage of #dbg_declare (PR #134508)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 5 13:49:17 PDT 2025
https://github.com/alan-j-hu created https://github.com/llvm/llvm-project/pull/134508
add a #dbg_declare to an i32 argument. The change introduced in ecd4c08 caught this incorrect usage of #dbg_declare in the OCaml tests.
>From 6f2d81ac808aa4f7b70fd7abd9fa4019c5df5e7d Mon Sep 17 00:00:00 2001
From: Alan Hu <ahulambda at gmail.com>
Date: Sat, 5 Apr 2025 16:40:42 -0400
Subject: [PATCH] [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.
---
llvm/test/Bindings/OCaml/debuginfo.ml | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/llvm/test/Bindings/OCaml/debuginfo.ml b/llvm/test/Bindings/OCaml/debuginfo.ml
index f95800dfcb025..797acbf4b9579 100644
--- a/llvm/test/Bindings/OCaml/debuginfo.ml
+++ b/llvm/test/Bindings/OCaml/debuginfo.ml
@@ -290,18 +290,6 @@ let test_variables f dibuilder file_di fun_di =
let () = Printf.printf "%s\n" (Llvm.string_of_lldbgrecord vdi) in
(* CHECK: dbg_declare(ptr %my_alloca, ![[#]], !DIExpression(), ![[#]])
*)
- let arg0 = (Llvm.params f).(0) in
- let arg_var = Llvm_debuginfo.dibuild_create_parameter_variable dibuilder ~scope:fun_di
- ~name:"my_arg" ~argno:1 ~file:file_di ~line:10 ~ty
- ~always_preserve:false flags_zero
- in
- let argdi = Llvm_debuginfo.dibuild_insert_declare_before dibuilder ~storage:arg0
- ~var_info:arg_var ~expr:(Llvm_debuginfo.dibuild_expression dibuilder [||])
- ~location ~instr:entry_term
- in
- let () = Printf.printf "%s\n" (Llvm.string_of_lldbgrecord argdi) in
- (* CHECK: dbg_declare(i32 %0, ![[#]], !DIExpression(), ![[#]])
- *)
()
let test_types dibuilder file_di m_di =
More information about the llvm-commits
mailing list