================
@@ -350,7 +350,7 @@ class DiagnoseHLSLAvailability
     static_assert(HLSLShaderAttr::ShaderTypeMaxValue < 31,
                   "ShaderType is too big for this bitmap");
     assert((((unsigned)1) << (unsigned)ShaderType) != 0 &&
----------------
damyanp wrote:

I wonder at this point if all we really need here is:

```
static_assert(sizeof(unsigned) >= 4); // if we want to be really paranoid
assert((unsigned)ShaderType < 31);
```


https://github.com/llvm/llvm-project/pull/92704
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to