Add an RS-specific check forbidding array parameters.

BUG=6902660

Change-Id: I048fa10955ef124d09dbb50eb618f15210d5c635
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 1550993..8eecb7c 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -7115,6 +7115,14 @@
     T = Context.getLifetimeQualifiedType(T, lifetime);
   }
 
+  if (Context.getLangOpts().Renderscript && T->isArrayType()) {
+    // Generate Diag
+    Diag(StartLoc,
+         Diags.getCustomDiagID(clang::DiagnosticsEngine::Error,
+                               "parameters may not have array type: %0"))
+      << T;
+  }
+
   ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name,
                                          Context.getAdjustedParameterType(T), 
                                          TSInfo,