From: Craig Topper Date: Mon, 21 Sep 2015 01:23:32 +0000 (+0000) Subject: Pass SourceLocation by value instead of by const reference since its just a 32-bit... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cdec83ab397bbb77a5131368005e4bd5bdf41d1;p=clang Pass SourceLocation by value instead of by const reference since its just a 32-bit integer. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248138 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index 3865f2773f..904556cbc6 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -2388,7 +2388,7 @@ private: bool SetVarAndLB(VarDecl *NewVar, DeclRefExpr *NewVarRefExpr, Expr *NewLB); /// \brief Helper to set upper bound. bool SetUB(Expr *NewUB, bool LessOp, bool StrictOp, const SourceRange &SR, - const SourceLocation &SL); + SourceLocation SL); /// \brief Helper to set loop increment. bool SetStep(Expr *NewStep, bool Subtract); }; @@ -2440,7 +2440,7 @@ bool OpenMPIterationSpaceChecker::SetVarAndLB(VarDecl *NewVar, bool OpenMPIterationSpaceChecker::SetUB(Expr *NewUB, bool LessOp, bool StrictOp, const SourceRange &SR, - const SourceLocation &SL) { + SourceLocation SL) { // State consistency checking to ensure correct usage. assert(Var != nullptr && LB != nullptr && UB == nullptr && Step == nullptr && !TestIsLessOp && !TestIsStrictOp);