summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedindex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unusedindex.cxx')
-rw-r--r--compilerplugins/clang/unusedindex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/unusedindex.cxx b/compilerplugins/clang/unusedindex.cxx
index a47d55b0fd0a..63b9d4dcaeaf 100644
--- a/compilerplugins/clang/unusedindex.cxx
+++ b/compilerplugins/clang/unusedindex.cxx
@@ -63,8 +63,7 @@ bool UnusedIndex::TraverseForStmt(ForStmt* stmt)
auto ret = RecursiveASTVisitor::TraverseStmt(stmt->getBody());
if (loopVarDecl && mFoundSet.erase(loopVarDecl) == 0)
- report(DiagnosticsEngine::Warning, "loop variable not used",
- compat::getBeginLoc(loopVarDecl))
+ report(DiagnosticsEngine::Warning, "loop variable not used", loopVarDecl->getBeginLoc())
<< loopVarDecl->getSourceRange();
if (loopVarDecl)