Skip to content

Commit ea32f99

Browse files
committed
[Sema][HLSL] Clarify wording. NFC
1 parent 8760ff1 commit ea32f99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11870,7 +11870,7 @@ def err_hlsl_attr_invalid_type : Error<
1187011870
def err_hlsl_attr_invalid_ast_node : Error<
1187111871
"attribute %0 only applies to %1">;
1187211872
def err_hlsl_entry_shader_attr_mismatch : Error<
11873-
"%0 attribute on entry function does not match the pipeline stage">;
11873+
"%0 attribute on entry function does not match the target profile">;
1187411874
def err_hlsl_numthreads_argument_oor : Error<"argument '%select{X|Y|Z}0' to numthreads attribute cannot exceed %1">;
1187511875
def err_hlsl_numthreads_invalid : Error<"total number of threads cannot exceed %0">;
1187611876
def err_hlsl_missing_numthreads : Error<"missing numthreads attribute for %0 shader entry">;

clang/test/SemaHLSL/entry_shader.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo -o - %s -DSHADER='"anyHit"' -verify
22
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry foo -o - %s -DSHADER='"compute"'
33

4-
// expected-error@+1 {{'shader' attribute on entry function does not match the pipeline stage}}
4+
// expected-error@+1 {{'shader' attribute on entry function does not match the target profile}}
55
[numthreads(1,1,1), shader(SHADER)]
66
void foo() {
77

0 commit comments

Comments
 (0)