[llvm-branch-commits] [clang] 051126f - Fix -Wswitch warning after 092c303955cd18be6c0b923b1c0a1b96e2c91893.
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 21 10:55:14 PDT 2021
Author: Haojian Wu
Date: 2021-06-21T13:54:43-04:00
New Revision: 051126fe6ffe0f7c27b260ad29ecc84eb34fac0f
URL: https://github.com/llvm/llvm-project/commit/051126fe6ffe0f7c27b260ad29ecc84eb34fac0f
DIFF: https://github.com/llvm/llvm-project/commit/051126fe6ffe0f7c27b260ad29ecc84eb34fac0f.diff
LOG: Fix -Wswitch warning after 092c303955cd18be6c0b923b1c0a1b96e2c91893.
(cherry picked from commit a83ef21ff82e4283044fd31470fc6c1bc4b99c51)
Added:
Modified:
clang/lib/Basic/Targets/X86.cpp
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 80e160bd9190f..c5ad1c7d2c2e0 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -515,6 +515,10 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
case CK_x86_64:
defineCPUMacros(Builder, "k8");
break;
+ case CK_x86_64_v2:
+ case CK_x86_64_v3:
+ case CK_x86_64_v4:
+ break;
case CK_AMDFAM10:
defineCPUMacros(Builder, "amdfam10");
break;
More information about the llvm-branch-commits
mailing list