diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-20 05:19:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-20 05:19:10 +0000 |
commit | e12a779bbecb46b7287a87e0ff441e32147d10bb (patch) | |
tree | d5fe4e9cde8b8f37bdb7c299a51d312b1cde1f47 /lib/Sema/SemaInit.cpp | |
parent | 2692d8284c77eee8ef3a93bf114cfec997a191a1 (diff) |
reapply john's patch, he broke mainline again by changing the test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 7929b588b6..981d5831b0 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -886,7 +886,7 @@ void InitListChecker::CheckVectorType(const InitializedEntity &Entity, // OpenCL & AltiVec require all elements to be initialized. if (numEltsInit != maxElements) - if (SemaRef.getLangOptions().OpenCL || SemaRef.getLangOptions().AltiVec) + if (SemaRef.getLangOptions().OpenCL) SemaRef.Diag(IList->getSourceRange().getBegin(), diag::err_vector_incorrect_num_initializers) << (numEltsInit < maxElements) << maxElements << numEltsInit; |