diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-05-09 20:48:12 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-05-09 20:48:12 +0000 |
| commit | 089db2e3af0b6166a8e2253c453eccf551ddfbd8 (patch) | |
| tree | 9c0e79038889d074986fa4c33b23e0655da296ac /lib/CodeGen/CGDebugInfo.cpp | |
| parent | cadfe42de2dccb4ab3c48fb127068ac2d35190d8 (diff) | |
| download | clang-089db2e3af0b6166a8e2253c453eccf551ddfbd8.tar.gz clang-089db2e3af0b6166a8e2253c453eccf551ddfbd8.tar.bz2 clang-089db2e3af0b6166a8e2253c453eccf551ddfbd8.tar.xz | |
Debug Info: Remove unnecessary check for dependent array types
This was added, untested (though the relevant crash was tested), in
r128725/PR9600. Removing it doesn't cause failures & nothing I can
imagine could cause this check to ever return 'true' (we should never be
dealing with dependent types here). The subsequent change to check
"isIncompleteType" (r128855/PR9608) makes a lot more sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
| -rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index f6ee4b8446..6678aa7198 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1585,7 +1585,7 @@ llvm::DIType CGDebugInfo::CreateType(const ArrayType *Ty, Align = 0; else Align = CGM.getContext().getTypeAlign(Ty->getElementType()); - } else if (Ty->isDependentSizedArrayType() || Ty->isIncompleteType()) { + } else if (Ty->isIncompleteType()) { Size = 0; Align = 0; } else { |
