]> granicus.if.org Git - clang/commitdiff
Take John McCall's suggestion and fix this silly gcc warnings in a way that
authorNick Lewycky <nicholas@mxc.ca>
Tue, 30 Nov 2010 07:50:28 +0000 (07:50 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 30 Nov 2010 07:50:28 +0000 (07:50 +0000)
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

lib/AST/Type.cpp

index 56cd4dddb5c6b8f45212346af1ee2e387b090859..196a4c8caa52e0eac9a53ff227fc09c8b7d44b87 100644 (file)
@@ -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.