[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Add optional parameters for RootConstants (PR #138007)

Ashley Coleman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 8 14:58:07 PDT 2025


================
@@ -78,6 +78,13 @@ std::optional<RootConstants> RootSignatureParser::parseRootConstants() {
 
   Constants.Reg = Params->Reg.value();
 
+  // Fill in optional parameters
+  if (Params->Visibility.has_value())
----------------
V-FEXrt wrote:

nit:
```suggestion
  if (Params->Visibility)
```

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


More information about the llvm-branch-commits mailing list