diff options
-rw-r--r-- | compilerplugins/clang/sequenceloop.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/sequenceloop.cxx b/compilerplugins/clang/sequenceloop.cxx index 340412a5137a..735c57d21b8e 100644 --- a/compilerplugins/clang/sequenceloop.cxx +++ b/compilerplugins/clang/sequenceloop.cxx @@ -64,7 +64,7 @@ bool SequenceLoop::VisitCXXForRangeStmt(CXXForRangeStmt const* forStmt) report(DiagnosticsEngine::Warning, "use std::as_const, or make range var const, to avoid creating a copy of the Sequence", - compat::getBeginLoc(forStmt)) + compat::getBeginLoc(forStmt->getRangeInit())) << forStmt->getSourceRange(); return true; } |