From ab868e2b409e73516dd83c44e1a32c122c460757 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 4 Apr 2011 23:23:39 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGDebugInfo.cpp | 5 ----- 1 file changed, 5 deletions(-) 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); -- 2.50.1