aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-02 07:50:03 +0000
committerChris Lattner <sabre@nondot.org>2007-12-02 07:50:03 +0000
commit8b1be778399741088cd6257964b8cdab8b37e53d (patch)
tree65c9a0d5a906b93d8388f0917af453c9a29b6c60
parentd411e04db18f7d07a889d51086861b23cbe05518 (diff)
restore these lines, which fixes some regtest failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44516 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Sema/SemaDecl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index 809bb3181f..71f2f19226 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -773,8 +773,8 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
// no linkage (C99 6.2.2p6), the type for the object shall be complete...
if (BVD && IDecl->getStorageClass() != VarDecl::Extern) {
if (T->isIncompleteType()) {
- //Diag(IDecl->getLocation(), diag::err_typecheck_decl_incomplete_type,
- // T.getAsString());
+ Diag(IDecl->getLocation(), diag::err_typecheck_decl_incomplete_type,
+ T.getAsString());
IDecl->setInvalidDecl();
}
}
@@ -788,8 +788,8 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
// a tentative definition and has internal linkage (C99 6.2.2p3), the
// declared type shall not be an incomplete type.
if (T->isIncompleteType()) {
- //Diag(IDecl->getLocation(), diag::err_typecheck_decl_incomplete_type,
- // T.getAsString());
+ Diag(IDecl->getLocation(), diag::err_typecheck_decl_incomplete_type,
+ T.getAsString());
IDecl->setInvalidDecl();
}
}