https://github.com/hekota created 
https://github.com/llvm/llvm-project/pull/207232

If the repo path contains "main", the test was matching it against the ModuleID 
in the output because it contains a path to the test file, and the follow-up 
checks were failing.

Based on feedback in 
https://github.com/llvm/llvm-project/pull/206596#discussion_r3510725223.

>From 71851b12cefc69edfb5c8dc2fe775e52f4b88fd1 Mon Sep 17 00:00:00 2001
From: Helena Kotas <[email protected]>
Date: Thu, 2 Jul 2026 10:11:14 -0700
Subject: [PATCH] [HLSL][NFC] Update test check to be more specific

If the repo path contains "main", the test was matching it
against the ModuleID in the output because it contains a path
to the test file, and the follow-up checks were failing.
---
 .../CodeGenHLSL/resources/resources-in-structs-method-call.hlsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/clang/test/CodeGenHLSL/resources/resources-in-structs-method-call.hlsl 
b/clang/test/CodeGenHLSL/resources/resources-in-structs-method-call.hlsl
index 29019dd6f99c3..d9b01a0f0141a 100644
--- a/clang/test/CodeGenHLSL/resources/resources-in-structs-method-call.hlsl
+++ b/clang/test/CodeGenHLSL/resources/resources-in-structs-method-call.hlsl
@@ -40,7 +40,7 @@ struct MyConstants {
 
 ConstantBuffer<MyConstants> Constants;
 
-// CHECK-LABEL: main
+// CHECK-LABEL: define internal void @main()()
 [numthreads(4,1,1)]
 void main() {
 // CHECK: [[TMP1:%.*]] = alloca %struct.MyStruct, align 4

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to