improve VC++ compatibility, patch by Cédric Venet.
llvm-svn: 44496
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp
index 71f2f19..809bb31 100644
--- a/clang/Sema/SemaDecl.cpp
+++ b/clang/Sema/SemaDecl.cpp
@@ -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();
}
}