From: Devang Patel Date: Mon, 4 Apr 2011 23:23:39 +0000 (+0000) Subject: Eliminate conservative check that is covered by isIncompleteType() check. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab868e2b409e73516dd83c44e1a32c122c460757;p=clang Eliminate conservative check that is covered by isIncompleteType() check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128857 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index cf147502c5..3bc2f3e97c 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1229,11 +1229,6 @@ llvm::DIType CGDebugInfo::CreateType(const ArrayType *Ty, } 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);