Index: lib/Sema/SemaType.cpp
===================================================================
--- lib/Sema/SemaType.cpp	(revision 108988)
+++ lib/Sema/SemaType.cpp	(working copy)
@@ -671,7 +671,8 @@
 
   // C99 6.7.5.2p1: The size expression shall have integer type.
   if (ArraySize && !ArraySize->isTypeDependent() &&
-      !ArraySize->getType()->isIntegerType()) {
+      (ArraySize->getType()->isVectorType() ||
+       !ArraySize->getType()->isIntegerType())) {
     Diag(ArraySize->getLocStart(), diag::err_array_size_non_int)
       << ArraySize->getType() << ArraySize->getSourceRange();
     ArraySize->Destroy(Context);
