================
@@ -501,6 +502,17 @@ Error 
MetadataParser::parseStaticSampler(mcdxbc::RootSignatureDesc &RSD,
     return Error(std::move(E));
   Sampler.ShaderVisibility = *Visibility;
 
+  if (RSD.Version < 3) {
+    RSD.StaticSamplers.push_back(Sampler);
+    return Error::success();
+  }
+  assert(RSD.Version >= 3);
----------------
joaosaffran wrote:

As per our offline discussion, I've filed an issue to throw an error when we 
notice the flags are being set in an unsupported version: 
https://github.com/llvm/llvm-project/issues/161579

https://github.com/llvm/llvm-project/pull/160210
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to