aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-09-29 20:07:05 +0000
committerSteve Naroff <snaroff@apple.com>2008-09-29 20:07:05 +0000
commit1ac6fddf6fb10441f7563fc4333c433f0d9730d0 (patch)
tree34d92756fc1391622345e7475b817d73be6de7ca /lib/Sema/SemaDecl.cpp
parentdfd296bae332d10a854620c059f5d9cef98764b8 (diff)
Add a random C99 comment/reference.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
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,