From: Simon Pilgrim Date: Wed, 3 Jul 2019 09:54:25 +0000 (+0000) Subject: Fix MSVC "not all control paths return a value" warnings. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8543b438756773308059070261f8e085bdc7f2a8;p=clang Fix MSVC "not all control paths return a value" warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365012 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index a71cc8e123..21cbd6dfa1 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -5481,6 +5481,7 @@ class APValueToBufferConverter { case APValue::LValue: llvm_unreachable("LValue subobject in bit_cast?"); } + llvm_unreachable("Unhandled APValue::ValueKind"); } bool visitRecord(const APValue &Val, QualType Ty, CharUnits Offset) { @@ -5749,6 +5750,7 @@ class BufferToAPValueConverter { llvm_unreachable("either dependent or not canonical!"); #include "clang/AST/TypeNodes.def" } + llvm_unreachable("Unhandled Type::TypeClass"); } public: