[cfe-commits] r86254 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Anders Carlsson andersca at mac.com
Fri Nov 6 09:01:39 PST 2009


Author: andersca
Date: Fri Nov  6 11:01:39 2009
New Revision: 86254

URL: http://llvm.org/viewvc/llvm-project?rev=86254&view=rev
Log:
Instead of returning a null DIType for unhandled types, assert.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=86254&r1=86253&r2=86254&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Nov  6 11:01:39 2009
@@ -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);





More information about the cfe-commits mailing list