summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-06-19 19:03:14 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-06-19 19:03:14 +0000
commit00dfec6265dfe622b42a9d08b4c50a1974c4f040 (patch)
tree444a403d279e371e089abe1083ff846b5193632e /clang/lib
parentf226e97dffffbc2fc815111b6285a96c4f22a2c2 (diff)
downloadbcm5719-llvm-00dfec6265dfe622b42a9d08b4c50a1974c4f040.tar.gz
bcm5719-llvm-00dfec6265dfe622b42a9d08b4c50a1974c4f040.zip
Delete dead code. (Array element types are always complete in C.)
llvm-svn: 184332
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/Sema.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 4f79c938b80..e55524b1062 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -681,13 +681,6 @@ void Sema::ActOnEndOfTranslationUnit() {
if (const IncompleteArrayType *ArrayT
= Context.getAsIncompleteArrayType(VD->getType())) {
- if (RequireCompleteType(VD->getLocation(),
- ArrayT->getElementType(),
- diag::err_tentative_def_incomplete_type_arr)) {
- VD->setInvalidDecl();
- continue;
- }
-
// Set the length of the array to 1 (C99 6.9.2p5).
Diag(VD->getLocation(), diag::warn_tentative_incomplete_array);
llvm::APInt One(Context.getTypeSize(Context.getSizeType()), true);
OpenPOWER on IntegriCloud