Skip to content

Commit

Permalink
[PowerPC] Fix gcc warning about unused variable [NFC]
Browse files Browse the repository at this point in the history
gcc warned about
../lib/Target/PowerPC/PPCTargetTransformInfo.cpp:1401:13: warning: unused variable 'VecTy' [-Wunused-variable]
 1401 |   if (auto *VecTy = dyn_cast<FixedVectorType>(DataType)) {
      |             ^~~~~
  • Loading branch information
mikaelholmen committed Dec 9, 2021
1 parent 5a33e41 commit cb413f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
Expand Up @@ -1398,7 +1398,7 @@ bool PPCTTIImpl::hasActiveVectorLength(unsigned Opcode, Type *DataType,
// therefore cannot be used in 32-bit mode.
if ((!ST->hasP9Vector() && !ST->hasP10Vector()) || !ST->isPPC64())
return false;
if (auto *VecTy = dyn_cast<FixedVectorType>(DataType)) {
if (isa<FixedVectorType>(DataType)) {
unsigned VecWidth = DataType->getPrimitiveSizeInBits();
return VecWidth == 128;
}
Expand Down

0 comments on commit cb413f2

Please sign in to comment.