[clang] c68e92d - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed May 3 02:24:04 PDT 2023
Author: Simon Pilgrim
Date: 2023-05-03T10:23:41+01:00
New Revision: c68e92d941723702810093161be4834f3ca68372
URL: https://github.com/llvm/llvm-project/commit/c68e92d941723702810093161be4834f3ca68372
DIFF: https://github.com/llvm/llvm-project/commit/c68e92d941723702810093161be4834f3ca68372.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang/lib/Sema/SemaRISCVVectorLookup.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaRISCVVectorLookup.cpp b/clang/lib/Sema/SemaRISCVVectorLookup.cpp
index f2cfa7db5c8d..981ab5f13716 100644
--- a/clang/lib/Sema/SemaRISCVVectorLookup.cpp
+++ b/clang/lib/Sema/SemaRISCVVectorLookup.cpp
@@ -87,6 +87,7 @@ ProtoSeq2ArrayRef(IntrinsicKind K, uint16_t Index, uint8_t Length) {
case IntrinsicKind::SIFIVE_VECTOR:
return ArrayRef(&RVSiFiveVectorSignatureTable[Index], Length);
}
+ llvm_unreachable("Unhandled IntrinsicKind");
}
static QualType RVVType2Qual(ASTContext &Context, const RVVType *Type) {
More information about the cfe-commits
mailing list