]> granicus.if.org Git - clang/commitdiff
Instead of returning a null DIType for unhandled types, assert.
authorAnders Carlsson <andersca@mac.com>
Fri, 6 Nov 2009 17:01:39 +0000 (17:01 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 6 Nov 2009 17:01:39 +0000 (17:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86254 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 714dde059be2dfac83447fc6bca7d0405a76c482..3048485c85df8b2c762e6e570108547f3c7577f5 100644 (file)
@@ -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);