aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp16
1 files changed, 14 insertions, 2 deletions
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();