aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-04 23:23:39 +0000
committerDevang Patel <dpatel@apple.com>2011-04-04 23:23:39 +0000
commitab868e2b409e73516dd83c44e1a32c122c460757 (patch)
treecd565a147f8b47436cca77f0dcce6e4d5f77ae1a /lib/CodeGen/CGDebugInfo.cpp
parentba690a4112be4f0abde48ce51d41e92c79f96f3e (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.cpp5
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);