From: Simon Pilgrim Date: Fri, 4 Oct 2019 12:45:27 +0000 (+0000) Subject: Fix MSVC "not all control paths return a value" warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5d2b957f42df02badc5e69807dd63f8bae9f087;p=llvm Fix MSVC "not all control paths return a value" warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373741 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveDebugValues.cpp b/lib/CodeGen/LiveDebugValues.cpp index 5a495594045..f1b237d83e8 100644 --- a/lib/CodeGen/LiveDebugValues.cpp +++ b/lib/CodeGen/LiveDebugValues.cpp @@ -311,6 +311,7 @@ private: case InvalidKind: llvm_unreachable("Tried to produce DBG_VALUE for invalid VarLoc"); } + llvm_unreachable("Unrecognized LiveDebugValues.VarLoc.Kind enum"); } /// Is the Loc field a constant or constant object?