Add a default clause to avoid this GCC warning:
Type.cpp:1000: warning: control reaches end of non-void function
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120376 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index 56cd4dd..f1b6470 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -965,6 +965,7 @@
const char *BuiltinType::getName(const LangOptions &LO) const {
switch (getKind()) {
+ default: assert(0 && "Invalid builtin type!");
case Void: return "void";
case Bool: return LO.Bool ? "bool" : "_Bool";
case Char_S: return "char";