From: Nick Lewycky Date: Tue, 30 Nov 2010 07:50:28 +0000 (+0000) Subject: Take John McCall's suggestion and fix this silly gcc warnings in a way that X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aab440b2cb0e583aeaf21f08c8247456f3142a23;p=clang Take John McCall's suggestion and fix this silly gcc warnings in a way that Doug isn't likely to rip back out. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120409 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 56cd4dddb5..196a4c8caa 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -995,6 +995,8 @@ const char *BuiltinType::getName(const LangOptions &LO) const { case ObjCClass: return "Class"; case ObjCSel: return "SEL"; } + llvm_unreachable("Invalid builtin type."); + return 0; } void FunctionType::ANCHOR() {} // Key function for FunctionType.