mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-24 18:20:38 +00:00
Pass SourceLocation by value instead of by const reference since its just a 32-bit integer. NFC
llvm-svn: 248138
This commit is contained in:
parent
3db9ba4248
commit
9cd5e4f080
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user