[clang] 64888d4 - SemaRISCVVectorLookup.cpp: Prune `default:` block. [-Wcovered-switch-default]
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Tue May 2 09:38:16 PDT 2023
Author: NAKAMURA Takumi
Date: 2023-05-03T01:37:37+09:00
New Revision: 64888d437c9e0dd52adad9b26784369a4ea24b7f
URL: https://github.com/llvm/llvm-project/commit/64888d437c9e0dd52adad9b26784369a4ea24b7f
DIFF: https://github.com/llvm/llvm-project/commit/64888d437c9e0dd52adad9b26784369a4ea24b7f.diff
LOG: SemaRISCVVectorLookup.cpp: Prune `default:` block. [-Wcovered-switch-default]
Added:
Modified:
clang/lib/Sema/SemaRISCVVectorLookup.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaRISCVVectorLookup.cpp b/clang/lib/Sema/SemaRISCVVectorLookup.cpp
index 0a5d2e6b5fca..f2cfa7db5c8d 100644
--- a/clang/lib/Sema/SemaRISCVVectorLookup.cpp
+++ b/clang/lib/Sema/SemaRISCVVectorLookup.cpp
@@ -82,8 +82,6 @@ static const RVVIntrinsicRecord RVSiFiveVectorIntrinsicRecords[] = {
static ArrayRef<PrototypeDescriptor>
ProtoSeq2ArrayRef(IntrinsicKind K, uint16_t Index, uint8_t Length) {
switch (K) {
- default:
- llvm_unreachable("Unsupported intrinsic kind.");
case IntrinsicKind::RVV:
return ArrayRef(&RVVSignatureTable[Index], Length);
case IntrinsicKind::SIFIVE_VECTOR:
More information about the cfe-commits
mailing list