diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-04 23:23:39 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-04 23:23:39 +0000 |
commit | ab868e2b409e73516dd83c44e1a32c122c460757 (patch) | |
tree | cd565a147f8b47436cca77f0dcce6e4d5f77ae1a /lib/CodeGen/CGDebugInfo.cpp | |
parent | ba690a4112be4f0abde48ce51d41e92c79f96f3e (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 0 insertions, 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); |