From: Benjamin Kramer Date: Mon, 3 Jun 2013 21:26:13 +0000 (+0000) Subject: Pacify compilers that think you can drop off a fully covered switch. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fcb0452235eeecfae8cabd7381e146327a8472e;p=clang Pacify compilers that think you can drop off a fully covered switch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/APValue.cpp b/lib/AST/APValue.cpp index 5cf9942a84..541836b21b 100644 --- a/lib/AST/APValue.cpp +++ b/lib/AST/APValue.cpp @@ -243,6 +243,7 @@ bool APValue::needsCleanup() const { case MemberPointer: return reinterpret_cast(Data)->hasPathPtr(); } + llvm_unreachable("Unknown APValue kind!"); } void APValue::swap(APValue &RHS) {