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

Devang Patel dpatel at apple.com
Mon Apr 4 18:23:39 CDT 2011


Author: dpatel
Date: Mon Apr  4 18:23:39 2011
New Revision: 128857

URL: http://llvm.org/viewvc/llvm-project?rev=128857&view=rev
Log:
Eliminate conservative check that is covered by isIncompleteType() check.

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=128857&r1=128856&r2=128857&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Apr  4 18:23:39 2011
@@ -1229,11 +1229,6 @@
   } else if (Ty->isDependentSizedArrayType() || Ty->isIncompleteType()) {
     Size = 0;
     Align = 0;
-  } else if (Ty->getElementType()->getTypeClass() 
-             == Type::TemplateSpecialization) {
-    // FIXME : Emit appropriate element type info.
-    Size = 0;
-    Align = 0;
   } else {
     // Size and align of the whole array, not the element type.
     Size = CGM.getContext().getTypeSize(Ty);




More information about the cfe-commits mailing list