aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/readability/RedundantControlFlowCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/readability/RedundantControlFlowCheck.cpp')
-rw-r--r--clang-tidy/readability/RedundantControlFlowCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tidy/readability/RedundantControlFlowCheck.cpp b/clang-tidy/readability/RedundantControlFlowCheck.cpp
index 0788c42e..d5898ed9 100644
--- a/clang-tidy/readability/RedundantControlFlowCheck.cpp
+++ b/clang-tidy/readability/RedundantControlFlowCheck.cpp
@@ -81,7 +81,7 @@ void RedundantControlFlowCheck::issueDiagnostic(
SourceLocation Start;
if (Previous != Block->body_rend())
Start = Lexer::findLocationAfterToken(
- dyn_cast<Stmt>(*Previous)->getLocEnd(), tok::semi, SM, getLangOpts(),
+ dyn_cast<Stmt>(*Previous)->getEndLoc(), tok::semi, SM, getLangOpts(),
/*SkipTrailingWhitespaceAndNewLine=*/true);
if (!Start.isValid())
Start = StmtRange.getBegin();