From edf0d0da435cb423bf82c87ead2787048d5cc991 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Thu, 26 Jun 2025 11:02:06 -0700 Subject: [PATCH] [OpenACc][CIR] Fix tests failed because of crossed-patches Review #145600 and #145770 crossed, which caused compute-copy and combined-copy tests to fail because of an insufficiently written 'check' line for a cir.func, which didn't account for the linkage spec being added. This patch adds that to fix the build. --- clang/test/CIR/CodeGenOpenACC/combined-copy.c | 2 +- clang/test/CIR/CodeGenOpenACC/compute-copy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/CIR/CodeGenOpenACC/combined-copy.c b/clang/test/CIR/CodeGenOpenACC/combined-copy.c index 16df179d900d..b4573e66f24a 100644 --- a/clang/test/CIR/CodeGenOpenACC/combined-copy.c +++ b/clang/test/CIR/CodeGenOpenACC/combined-copy.c @@ -1104,7 +1104,7 @@ void copy_member_of_array_element_member() { } void modifier_list() { - // CHECK: cir.func @modifier_list() { + // CHECK: cir.func{{.*}} @modifier_list() { int localVar; // CHECK-NEXT: %[[LOCALVAR:.*]] = cir.alloca !s32i, !cir.ptr, ["localVar"] diff --git a/clang/test/CIR/CodeGenOpenACC/compute-copy.c b/clang/test/CIR/CodeGenOpenACC/compute-copy.c index b3010ab6e4b6..d7676d6d30c1 100644 --- a/clang/test/CIR/CodeGenOpenACC/compute-copy.c +++ b/clang/test/CIR/CodeGenOpenACC/compute-copy.c @@ -899,7 +899,7 @@ void acc_compute_members() { } void modifier_list() { - // CHECK: cir.func @modifier_list() { + // CHECK: cir.func{{.*}} @modifier_list() { int localVar; // CHECK-NEXT: %[[LOCALVAR:.*]] = cir.alloca !s32i, !cir.ptr, ["localVar"]