[OPENMP] Constify function parameters, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 25 Oct 2017 15:44:52 +0000 (15:44 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 25 Oct 2017 15:44:52 +0000 (15:44 +0000)
llvm-svn: 316584

clang/lib/Sema/SemaOpenMP.cpp

index bf89eb0..82e7967 100644 (file)
@@ -4322,7 +4322,7 @@ static bool FitsInto(unsigned Bits, bool Signed, Expr *E, Sema &SemaRef) {
 
 /// Build preinits statement for the given declarations.
 static Stmt *buildPreInits(ASTContext &Context,
-                           SmallVectorImpl<Decl *> &PreInits) {
+                           MutableArrayRef<Decl *> PreInits) {
   if (!PreInits.empty()) {
     return new (Context) DeclStmt(
         DeclGroupRef::Create(Context, PreInits.begin(), PreInits.size()),
@@ -4332,8 +4332,9 @@ static Stmt *buildPreInits(ASTContext &Context,
 }
 
 /// Build preinits statement for the given declarations.
-static Stmt *buildPreInits(ASTContext &Context,
-                           llvm::MapVector<Expr *, DeclRefExpr *> &Captures) {
+static Stmt *
+buildPreInits(ASTContext &Context,
+              const llvm::MapVector<Expr *, DeclRefExpr *> &Captures) {
   if (!Captures.empty()) {
     SmallVector<Decl *, 16> PreInits;
     for (auto &Pair : Captures)