[compiler-rt] 4d8ea66 - [compiler-rt] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 00:29:16 PDT 2023
Author: Kazu Hirata
Date: 2023-10-19T00:29:10-07:00
New Revision: 4d8ea66d74cd355c267b27ca2dd04c821ae2331f
URL: https://github.com/llvm/llvm-project/commit/4d8ea66d74cd355c267b27ca2dd04c821ae2331f
DIFF: https://github.com/llvm/llvm-project/commit/4d8ea66d74cd355c267b27ca2dd04c821ae2331f.diff
LOG: [compiler-rt] Fix a warning
This patch fixes:
compiler-rt/lib/builtins/cpu_model.c:590:5: error: unannotated
fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
by adding a missing "break;".
Added:
Modified:
compiler-rt/lib/builtins/cpu_model.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/cpu_model.c b/compiler-rt/lib/builtins/cpu_model.c
index 507758d0eaa9b7f..aefa56abcdd9535 100644
--- a/compiler-rt/lib/builtins/cpu_model.c
+++ b/compiler-rt/lib/builtins/cpu_model.c
@@ -586,6 +586,7 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
CPU = "clearwaterforest";
*Type = INTEL_COREI7;
*Subtype = INTEL_CLEARWATERFOREST;
+ break;
case 0x57:
CPU = "knl";
More information about the llvm-commits
mailing list