Skip to content

Commit 3cce131

Browse files
Fix unsafe inmplicit cast
1 parent 17b810e commit 3cce131

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11712,7 +11712,7 @@ static bool IsPackedType(unsigned type) {
1171211712

1171311713
static bool IsValidLinalgTypeInterpretation(uint32_t Input, bool InRegister) {
1171411714

11715-
switch (Input) {
11715+
switch (static_cast<DXIL::ComponentType>(Input)) {
1171611716
case DXIL::ComponentType::I16:
1171711717
case DXIL::ComponentType::U16:
1171811718
case DXIL::ComponentType::I32:

0 commit comments

Comments
 (0)