[clang] 37f8010 - Silence a "not all control paths return" MSVC warning; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 3 07:27:26 PDT 2022


Author: Aaron Ballman
Date: 2022-11-03T10:27:16-04:00
New Revision: 37f80101a9120c95eb3c1022b8cc4a390f561700

URL: https://github.com/llvm/llvm-project/commit/37f80101a9120c95eb3c1022b8cc4a390f561700
DIFF: https://github.com/llvm/llvm-project/commit/37f80101a9120c95eb3c1022b8cc4a390f561700.diff

LOG: Silence a "not all control paths return" MSVC warning; NFC

Added: 
    

Modified: 
    clang/lib/AST/Interp/Descriptor.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Descriptor.cpp b/clang/lib/AST/Interp/Descriptor.cpp
index 55182ec383fa1..f645063acdd01 100644
--- a/clang/lib/AST/Interp/Descriptor.cpp
+++ b/clang/lib/AST/Interp/Descriptor.cpp
@@ -184,6 +184,7 @@ static BlockCtorFn getCtorArrayPrim(PrimType Type) {
 
 static BlockDtorFn getDtorArrayPrim(PrimType Type) {
   TYPE_SWITCH(Type, return dtorArrayTy<T>);
+  llvm_unreachable("unknown Expr");
 }
 
 static BlockMoveFn getMoveArrayPrim(PrimType Type) {


        


More information about the cfe-commits mailing list