Instead of returning a null DIType for unhandled types, assert.
llvm-svn: 86254
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 714dde0..3048485 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -842,15 +842,7 @@
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);