Author: abataev Date: Wed Oct 25 08:44:52 2017 New Revision: 316584 URL: http://llvm.org/viewvc/llvm-project?rev=316584&view=rev Log: [OPENMP] Constify function parameters, NFC.
Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOpenMP.cpp?rev=316584&r1=316583&r2=316584&view=diff ============================================================================== --- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original) +++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Wed Oct 25 08:44:52 2017 @@ -4322,7 +4322,7 @@ static bool FitsInto(unsigned Bits, bool /// 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 &C } /// 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) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits