Skip to content

Commit 3414cce

Browse files
committed
fix warning seen by buildbot
1 parent 0f9b954 commit 3414cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ bool SemaHLSL::CanPerformScalarCast(QualType SrcTy, QualType DestTy) {
27132713
if (SemaRef.getASTContext().hasSameUnqualifiedType(SrcTy, DestTy))
27142714
return true;
27152715

2716-
switch (Type::ScalarTypeKind SrcKind = SrcTy->getScalarTypeKind()) {
2716+
switch (SrcTy->getScalarTypeKind()) {
27172717
case Type::STK_Bool: // casting from bool is like casting from an integer
27182718
case Type::STK_Integral:
27192719
switch (DestTy->getScalarTypeKind()) {

0 commit comments

Comments
 (0)