From: David Blaikie Date: Wed, 9 Jan 2013 17:48:41 +0000 (+0000) Subject: Suppress GCC -Wreturn warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=719e53f64637c5ac41aac0c711e1977487ffc0d7;p=clang Suppress GCC -Wreturn warning. Modified from a patch by David Greene. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171982 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index dc398f36ec..046b18712c 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -4870,6 +4870,7 @@ static char getObjCEncodingForPrimitiveKind(const ASTContext *C, #include "clang/AST/BuiltinTypes.def" llvm_unreachable("invalid builtin type for @encode"); } + llvm_unreachable("invalid BuiltinType::Kind value"); } static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) {