From: Devang Patel Date: Mon, 12 Sep 2011 18:50:21 +0000 (+0000) Subject: By popular demand, enumerate all builtin types! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7566cf6e194946c2b6540444e99452e3e678349;p=clang 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 5770764dfa..25a97e4efc 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -289,8 +289,20 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { 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();