]> granicus.if.org Git - clang/commitdiff
Pass SourceLocation by value instead of by const reference since its just a 32-bit...
authorCraig Topper <craig.topper@gmail.com>
Mon, 21 Sep 2015 01:23:32 +0000 (01:23 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 21 Sep 2015 01:23:32 +0000 (01:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOpenMP.cpp

index 3865f2773f98bded43296bda52c09c06f666ce33..904556cbc638e7328f62fc9c659507f0a8efc7a8 100644 (file)
@@ -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);