3 Commits

Author SHA1 Message Date
Justin Bogner
43a9b92d79 [Sema][HLSL] Fix naming of anyhit/closesthit shaders
Also test all shader types and be a bit more careful to make shaders
reasonably valid in these tests.

Differential Revision: https://reviews.llvm.org/D158820
2023-08-25 13:08:36 -07:00
Justin Bogner
ea32f99480 [Sema][HLSL] Clarify wording. NFC 2023-08-25 01:03:22 -07:00
Richard Sandiford
03a9a1e664 [Sema] Fix reporting of invalid shader attribute on HLSL entry function
If the HLSL entry function had a shader attribute that conflicted
with the pipeline stage specified in the target triple, Clang
would emit:

   error: (null) attribute parameters do not match the previous declaration
   conflicting attribute is here

(where the second line doesn't reference an attribute).

This was because the code constructed a dummy attribute that had
only a source location, but no kind or syntax.

Noticed while doing some changes to the attribute handling.

Differential Revision: https://reviews.llvm.org/D147657
2023-04-06 10:56:01 +01:00