From: Alexey Bataev Date: Wed, 25 Oct 2017 15:44:52 +0000 (+0000) Subject: [OPENMP] Constify function parameters, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5a3eef96117aae3537285eac87e375adab1e2ff;p=clang [OPENMP] Constify function parameters, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316584 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)