[cfe-commits] r44516 - /cfe/trunk/Sema/SemaDecl.cpp
Chris Lattner
sabre at nondot.org
Sat Dec 1 23:50:04 PST 2007
Author: lattner
Date: Sun Dec 2 01:50:03 2007
New Revision: 44516
URL: http://llvm.org/viewvc/llvm-project?rev=44516&view=rev
Log:
restore these lines, which fixes some regtest failures.
Modified:
cfe/trunk/Sema/SemaDecl.cpp
Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=44516&r1=44515&r2=44516&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Sun Dec 2 01:50:03 2007
@@ -773,8 +773,8 @@
// 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 @@
// 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();
}
}
More information about the cfe-commits
mailing list