diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp index eeba5cce80da..4726674be66f 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp @@ -138,9 +138,9 @@ void UseIntegerSignComparisonCheck::check( return; const Expr *SubExprLHS = nullptr; const Expr *SubExprRHS = nullptr; - SourceRange R1 = SourceRange(LHS->getBeginLoc()); - SourceRange R2 = SourceRange(BinaryOp->getOperatorLoc()); - SourceRange R3 = SourceRange(Lexer::getLocForEndOfToken( + SourceRange R1(LHS->getBeginLoc()); + SourceRange R2(BinaryOp->getOperatorLoc()); + SourceRange R3(Lexer::getLocForEndOfToken( RHS->getEndLoc(), 0, *Result.SourceManager, getLangOpts())); if (const auto *LHSCast = llvm::dyn_cast<ExplicitCastExpr>(LHS)) { SubExprLHS = LHSCast->getSubExpr(); |
