From a93b49e3978ba16c7cb1d45cf6d914d6ace2ac98 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 28 Oct 2026 03:42:08 +0100 Subject: [PATCH] Relax DIExpression check in dbg-line-column test The DW_OP_constu/swap/xderef opcodes are not needed to validate the line/column information checked by this test. The address space is already encoded in the pointer type of the variable, so match any DIExpression to allow removing DW_OP_xderef. Co-Authored-By: Claude Sonnet 5.5 --- tests/Manual/testsuite/dbg-line-column.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Manual/testsuite/dbg-line-column.cl b/tests/Manual/testsuite/dbg-line-column.cl index c1ca3fcac..36c06de0a 100644 --- a/tests/Manual/testsuite/dbg-line-column.cl +++ b/tests/Manual/testsuite/dbg-line-column.cl @@ -3,7 +3,7 @@ // RUN: %occ-cli %s --cl-options="-g" %cfg_path --cl-device=%cl_device --output=%t.bc // RUN: llvm-dis %t.bc -o - | FileCheck %s -// CHECK: #dbg_declare(ptr %input.addr, ![[#]], !DIExpression(DW_OP_constu, 0, DW_OP_swap, DW_OP_xderef), ![[LOC:[0-9]+]]) +// CHECK: #dbg_declare(ptr %input.addr, ![[#]], !DIExpression({{.*}}), ![[LOC:[0-9]+]]) // Only check there is line and scope information since column information // isn't generated on Windows // CHECK: ![[LOC]] = !DILocation(line: {{[0-9]+}}, {{.*}}scope: !{{[0-9]+}})