[llvm-branch-commits] [llvm] 2016f2c - Fixes warning 'enumeration value not handled in switch'.
Jacques Pienaar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 30 07:00:44 PST 2020
Author: Bogdan Graur
Date: 2020-12-30T06:56:29-08:00
New Revision: 2016f2c8a76d67d8cd4771796b6cd19fd66e3f37
URL: https://github.com/llvm/llvm-project/commit/2016f2c8a76d67d8cd4771796b6cd19fd66e3f37
DIFF: https://github.com/llvm/llvm-project/commit/2016f2c8a76d67d8cd4771796b6cd19fd66e3f37.diff
LOG: Fixes warning 'enumeration value not handled in switch'.
This was introduced in commit: 981a0bd85811fe49379fdbef35528e2c2f3511a3.
Differential Revision: https://reviews.llvm.org/D93944
Added:
Modified:
llvm/tools/llvm-c-test/echo.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-c-test/echo.cpp b/llvm/tools/llvm-c-test/echo.cpp
index e2262c2d575d..a29f360d1fdf 100644
--- a/llvm/tools/llvm-c-test/echo.cpp
+++ b/llvm/tools/llvm-c-test/echo.cpp
@@ -149,6 +149,8 @@ struct TypeCloner {
LLVMGetVectorSize(Src));
case LLVMMetadataTypeKind:
return LLVMMetadataTypeInContext(Ctx);
+ case LLVMX86_AMXTypeKind:
+ return LLVMX86AMXTypeInContext(Ctx);
case LLVMX86_MMXTypeKind:
return LLVMX86MMXTypeInContext(Ctx);
case LLVMTokenTypeKind:
More information about the llvm-branch-commits
mailing list