]> granicus.if.org Git - clang/commitdiff
restore these lines, which fixes some regtest failures.
authorChris Lattner <sabre@nondot.org>
Sun, 2 Dec 2007 07:50:03 +0000 (07:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Dec 2007 07:50:03 +0000 (07:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44516 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaDecl.cpp

index 809bb3181f4b20ed1bee0306f383c8fb48c78e59..71f2f192260e4a06c0cb32b7b346b077c85b99e5 100644 (file)
@@ -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();
       }
     }