diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-09-21 01:23:32 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-09-21 01:23:32 +0000 |
commit | 9cd5e4f0806c8cadbfa60cc704817bd2991a0fdc (patch) | |
tree | dd03e9bb9a09f7033868703d5410d7bc8911fffb | |
parent | 3db9ba4248cc1e45879ad8193593e6c066d02c7d (diff) | |
download | bcm5719-llvm-9cd5e4f0806c8cadbfa60cc704817bd2991a0fdc.tar.gz bcm5719-llvm-9cd5e4f0806c8cadbfa60cc704817bd2991a0fdc.zip |
Pass SourceLocation by value instead of by const reference since its just a 32-bit integer. NFC
llvm-svn: 248138
-rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 3865f2773f9..904556cbc63 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/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); |