From f5a3eef96117aae3537285eac87e375adab1e2ff Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Wed, 25 Oct 2017 15:44:52 +0000 Subject: [PATCH] [OPENMP] Constify function parameters, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316584 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaOpenMP.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index bf89eb0b2f..82e7967fb2 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -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 &PreInits) { + MutableArrayRef 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 &Captures) { +static Stmt * +buildPreInits(ASTContext &Context, + const llvm::MapVector &Captures) { if (!Captures.empty()) { SmallVector PreInits; for (auto &Pair : Captures) -- 2.50.1