[llvm] 4b33c93 - [Hexagon] Silence warning
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 09:58:46 PDT 2020
Author: Benjamin Kramer
Date: 2020-04-22T18:57:08+02:00
New Revision: 4b33c935db15a9880e93e79a10066745aca2d22d
URL: https://github.com/llvm/llvm-project/commit/4b33c935db15a9880e93e79a10066745aca2d22d
DIFF: https://github.com/llvm/llvm-project/commit/4b33c935db15a9880e93e79a10066745aca2d22d.diff
LOG: [Hexagon] Silence warning
llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp:296:11: warning: enumeration value 'ScalableVectorTyID' not handled in switch [-Wswitch]
switch (Ty->getTypeID()) {
^
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
index 6f74c6b8a8c1..97aee3a10207 100644
--- a/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
@@ -307,7 +307,8 @@ unsigned HexagonTargetObjectFile::getSmallestAddressableSize(const Type *Ty,
const ArrayType *ATy = cast<const ArrayType>(Ty);
return getSmallestAddressableSize(ATy->getElementType(), GV, TM);
}
- case Type::FixedVectorTyID: {
+ case Type::FixedVectorTyID:
+ case Type::ScalableVectorTyID: {
const VectorType *PTy = cast<const VectorType>(Ty);
return getSmallestAddressableSize(PTy->getElementType(), GV, TM);
}
More information about the llvm-commits
mailing list