Author: Helena Kotas
Date: 2026-07-02T12:53:38-07:00
New Revision: 9bd12f6d8873cca268d8129d9395fcefdfa5ab2e

URL: 
https://github.com/llvm/llvm-project/commit/9bd12f6d8873cca268d8129d9395fcefdfa5ab2e
DIFF: 
https://github.com/llvm/llvm-project/commit/9bd12f6d8873cca268d8129d9395fcefdfa5ab2e.diff

LOG: [HLSL][NFC] Update test check to be more specific (#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.

Added: 
    

Modified: 
    clang/test/CodeGenHLSL/resources/resources-in-structs-method-call.hlsl

Removed: 
    


################################################################################
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