Skip to content

Commit 63dab72

Browse files
committed
[Sema] Remove unused variable 'FromExtType' [NFC]
Last use of the variable was removed in a29afb7 [HLSL] Allow truncation to scalar (#104844) gcc warned about this: ../../clang/lib/Sema/SemaOverload.cpp:2070:15: warning: unused variable 'FromExtType' [-Wunused-variable] 2070 | if (auto *FromExtType = FromType->getAs<ExtVectorType>()) { | ^~~~~~~~~~~
1 parent 37cf39f commit 63dab72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaOverload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ static bool IsVectorConversion(Sema &S, QualType FromType, QualType ToType,
20672067

20682068
// There are no conversions between extended vector types, only identity.
20692069
if (auto *ToExtType = ToType->getAs<ExtVectorType>()) {
2070-
if (auto *FromExtType = FromType->getAs<ExtVectorType>()) {
2070+
if (FromType->getAs<ExtVectorType>()) {
20712071
// There are no conversions between extended vector types other than the
20722072
// identity conversion.
20732073
return false;

0 commit comments

Comments
 (0)