[llvm] 9c5b38b - [Coverage] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 09:50:18 PDT 2023
Author: Kazu Hirata
Date: 2023-09-22T09:50:11-07:00
New Revision: 9c5b38b49fa2a1a81dac78faa0a8432eff495615
URL: https://github.com/llvm/llvm-project/commit/9c5b38b49fa2a1a81dac78faa0a8432eff495615
DIFF: https://github.com/llvm/llvm-project/commit/9c5b38b49fa2a1a81dac78faa0a8432eff495615.diff
LOG: [Coverage] Fix a warning
This patch fixes:
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp:219:5: error:
default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
Added:
Modified:
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
index d62bf02ae52e71c..f8466bc8f7eb891 100644
--- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -216,8 +216,6 @@ Expected<int64_t> CounterMappingContext::evaluate(const Counter &C) const {
}
break;
}
- default:
- llvm_unreachable("Unhandled CounterKind");
}
}
More information about the llvm-commits
mailing list