By popular demand, enumerate all builtin types!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139521 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 5770764..25a97e4 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -289,8 +289,20 @@
   unsigned Encoding = 0;
   const char *BTName = NULL;
   switch (BT->getKind()) {
-  default:
-    assert(0 && "Unexpected builtin");
+  case BuiltinType::Dependent:
+    assert(0 && "Unexpected builtin type Dependent");
+    return llvm::DIType();
+  case BuiltinType::Overload:
+    assert(0 && "Unexpected builtin type Overload");
+    return llvm::DIType();
+  case BuiltinType::BoundMember:
+    assert(0 && "Unexpected builtin type BoundMember");
+    return llvm::DIType();
+  case BuiltinType::UnknownAny:
+    assert(0 && "Unexpected builtin type UnknownAny");
+    return llvm::DIType();
+  case BuiltinType::NullPtr:
+    assert(0 && "Unexpected builtin type NullPtr");
     return llvm::DIType();
   case BuiltinType::Void:
     return llvm::DIType();