[PATCH] D93944: Fixes warning 'enumeration value not handled in switch'.
Bogdan Graur via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 30 06:34:46 PST 2020
bgraur created this revision.
Herald added a subscriber: hiraditya.
bgraur requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This was introduced in commit: 981a0bd85811fe49379fdbef35528e2c2f3511a3 <https://reviews.llvm.org/rG981a0bd85811fe49379fdbef35528e2c2f3511a3>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93944
Files:
llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
llvm/tools/llvm-c-test/echo.cpp
Index: llvm/tools/llvm-c-test/echo.cpp
===================================================================
--- llvm/tools/llvm-c-test/echo.cpp
+++ llvm/tools/llvm-c-test/echo.cpp
@@ -149,6 +149,8 @@
LLVMGetVectorSize(Src));
case LLVMMetadataTypeKind:
return LLVMMetadataTypeInContext(Ctx);
+ case LLVMX86_AMXTypeKind:
+ return LLVMX86AMXTypeInContext(Ctx);
case LLVMX86_MMXTypeKind:
return LLVMX86MMXTypeInContext(Ctx);
case LLVMTokenTypeKind:
Index: llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
===================================================================
--- llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
+++ llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
@@ -330,6 +330,7 @@
case Type::PPC_FP128TyID:
case Type::LabelTyID:
case Type::MetadataTyID:
+ case Type::X86_AMXTyID:
case Type::X86_MMXTyID:
case Type::TokenTyID:
return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93944.314114.patch
Type: text/x-patch
Size: 969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201230/c05c94cf/attachment.bin>
More information about the llvm-commits
mailing list