diff options
author | Anders Carlsson <andersca@mac.com> | 2009-11-06 17:01:39 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-11-06 17:01:39 +0000 |
commit | eb9bc2ba82b8458304ead5306342a91d0521c472 (patch) | |
tree | 14383c267242c6245538582126d47a0726c6e11a /clang/lib/CodeGen | |
parent | 167bce9cf148838d5aa2355e509c68145ed3e618 (diff) | |
download | bcm5719-llvm-eb9bc2ba82b8458304ead5306342a91d0521c472.tar.gz bcm5719-llvm-eb9bc2ba82b8458304ead5306342a91d0521c472.zip |
Instead of returning a null DIType for unhandled types, assert.
llvm-svn: 86254
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 714dde059be..3048485c85d 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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); |