From: Simon Pilgrim Date: Mon, 19 Oct 2020 10:15:38 +0000 (+0100) Subject: Fix MSVC "not all control paths return a value" warning. NFCI. X-Git-Tag: llvmorg-13-init~8905 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fe7d9b130d4318274eb8b17f15542013e59ca32;p=platform%2Fupstream%2Fllvm.git Fix MSVC "not all control paths return a value" warning. NFCI. --- diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index bf7c1ad..9106b90 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -1463,6 +1463,7 @@ static bool castPreservesZero(const CastExpr *CE) { case CK_UncheckedDerivedToBase: return false; } + llvm_unreachable("Unhandled clang::CastKind enum"); } /// isSimpleZero - If emitting this value will obviously just cause a store of