aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-06 17:01:39 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-06 17:01:39 +0000
commitb93811847d3db2759de44a4746ca257810eeb3ff (patch)
tree41b21bba7a6fdfbbefba0e7968786b7c5b24ce83 /lib/CodeGen/CGDebugInfo.cpp
parentceeb02db9ad4232ea248a44192180d5bc7fe2653 (diff)
Instead of returning a null DIType for unhandled types, assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 714dde059b..3048485c85 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -842,15 +842,7 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty,
assert(false && "Dependent types cannot show up in debug information");
default:
- case Type::LValueReference:
- case Type::RValueReference:
- case Type::Vector:
- case Type::ExtVector:
- case Type::FixedWidthInt:
- case Type::MemberPointer:
- case Type::TemplateSpecialization:
- case Type::QualifiedName:
- // Unsupported types
+ assert(false && "Unhandled type class!");
return llvm::DIType();
case Type::ObjCObjectPointer:
return CreateType(cast<ObjCObjectPointerType>(Ty), Unit);