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) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to