From: Aaron Ballman Date: Thu, 3 Nov 2022 14:14:30 +0000 (-0400) Subject: Silence a "not all control paths return" MSVC warning; NFC X-Git-Tag: upstream/17.0.6~28615 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37f80101a9120c95eb3c1022b8cc4a390f561700;p=platform%2Fupstream%2Fllvm.git Silence a "not all control paths return" MSVC warning; NFC --- 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) {