From 719e53f64637c5ac41aac0c711e1977487ffc0d7 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 9 Jan 2013 17:48:41 +0000 Subject: [PATCH] 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 --- lib/AST/ASTContext.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.50.1