Skip to content

Commit

Permalink
fix warning seen by buildbot
Browse files Browse the repository at this point in the history
  • Loading branch information
spall committed Feb 7, 2025
1 parent 0f9b954 commit 3414cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaHLSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2713,7 +2713,7 @@ bool SemaHLSL::CanPerformScalarCast(QualType SrcTy, QualType DestTy) {
if (SemaRef.getASTContext().hasSameUnqualifiedType(SrcTy, DestTy))
return true;

switch (Type::ScalarTypeKind SrcKind = SrcTy->getScalarTypeKind()) {
switch (SrcTy->getScalarTypeKind()) {
case Type::STK_Bool: // casting from bool is like casting from an integer
case Type::STK_Integral:
switch (DestTy->getScalarTypeKind()) {
Expand Down

0 comments on commit 3414cce

Please sign in to comment.