[clang] [HLSL] (DRAFT) Another way to implement #92071: [HLSL] Default linkage of HLSL function should be internal (PR #95331)

Greg Roth via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 25 13:02:58 PDT 2024


================
@@ -119,3 +119,16 @@ behavior between Clang and DXC. Some examples include:
   diagnostic notifying the user of the conversion rather than silently altering
   precision relative to the other overloads (as FXC does) or generating code
   that will fail validation (as DXC does).
+
+Correctness improvements (bug fixes)
+====================================
+
+Entry point functions & ``static`` keyword
+------------------------------------------
+Marking a shader entry point function ``static`` will result in an error.
+
+This is identical to DXC behavior when an entry point is specified as compiler
----------------
pow2clk wrote:

What is the expected error? What I see in DXC is "Cannot find entry function main". That's better than cheerfully producing an empty library, but it could be more helpful. 

https://github.com/llvm/llvm-project/pull/95331


More information about the cfe-commits mailing list