[clang] a83ef21 - Fix -Wswitch warning after 092c303955cd18be6c0b923b1c0a1b96e2c91893.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 14 02:53:19 PDT 2021


Author: Haojian Wu
Date: 2021-06-14T11:52:49+02:00
New Revision: a83ef21ff82e4283044fd31470fc6c1bc4b99c51

URL: https://github.com/llvm/llvm-project/commit/a83ef21ff82e4283044fd31470fc6c1bc4b99c51
DIFF: https://github.com/llvm/llvm-project/commit/a83ef21ff82e4283044fd31470fc6c1bc4b99c51.diff

LOG: Fix -Wswitch warning after 092c303955cd18be6c0b923b1c0a1b96e2c91893.

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 8f7749bd6066..3143a70adf85 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -516,6 +516,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 cfe-commits mailing list