From 37f80101a9120c95eb3c1022b8cc4a390f561700 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 3 Nov 2022 10:14:30 -0400 Subject: [PATCH] Silence a "not all control paths return" MSVC warning; NFC --- clang/lib/AST/Interp/Descriptor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/AST/Interp/Descriptor.cpp b/clang/lib/AST/Interp/Descriptor.cpp index 55182ec..f645063 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); + llvm_unreachable("unknown Expr"); } static BlockMoveFn getMoveArrayPrim(PrimType Type) { -- 2.7.4