From: Steve Naroff Date: Mon, 29 Sep 2008 20:07:05 +0000 (+0000) Subject: Add a random C99 comment/reference. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ac6fddf6fb10441f7563fc4333c433f0d9730d0;p=clang Add a random C99 comment/reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56800 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 9d3947bfcd..800ffc5706 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -562,6 +562,7 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType) { if (StringLiteral *strLiteral = IsStringLiteralInit(Init, DeclType)) return CheckStringLiteralInit(strLiteral, DeclType); + // C99 6.7.8p16. if (DeclType->isArrayType()) return Diag(Init->getLocStart(), diag::err_array_init_list_required,