[llvm-branch-commits] [clang] [llvm] [HLSL][DirectX] Add support for `rootsig` as a target environment (PR #156373)

Justin Bogner via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 4 10:11:59 PDT 2025


================
@@ -1296,6 +1296,9 @@ class InjectRootSignatureCallback : public PPCallbacks {
 
 void HLSLFrontendAction::ExecuteAction() {
   // Pre-requisites to invoke
+  if (getCurrentFileKind().getLanguage() != Language::HLSL)
+    return WrapperFrontendAction::ExecuteAction();
----------------
bogner wrote:

How can we get here? I don't really understand what the added language check here is doing.

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


More information about the llvm-branch-commits mailing list