r248138 - Pass SourceLocation by value instead of by const reference since its just a 32-bit integer. NFC
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 18:23:32 PDT 2015
Author: ctopper
Date: Sun Sep 20 20:23:32 2015
New Revision: 248138
URL: http://llvm.org/viewvc/llvm-project?rev=248138&view=rev
Log:
Pass SourceLocation by value instead of by const reference since its just a 32-bit integer. 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=248138&r1=248137&r2=248138&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Sun Sep 20 20:23:32 2015
@@ -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::SetVar
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);
More information about the cfe-commits
mailing list