summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/store/finalprotected.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/finalprotected.cxx')
-rw-r--r--compilerplugins/clang/store/finalprotected.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/store/finalprotected.cxx b/compilerplugins/clang/store/finalprotected.cxx
index 41b994c049d5..c7296232a25b 100644
--- a/compilerplugins/clang/store/finalprotected.cxx
+++ b/compilerplugins/clang/store/finalprotected.cxx
@@ -51,7 +51,7 @@ bool FinalProtected::VisitCXXMethodDecl(CXXMethodDecl const * cxxMethodDecl)
cxxMethodDecl = cxxMethodDecl->getCanonicalDecl();
report(DiagnosticsEngine::Warning,
"final class should not have protected members - convert them to private",
- compat::getBeginLoc(cxxMethodDecl))
+ cxxMethodDecl->getBeginLoc())
<< cxxMethodDecl->getSourceRange();
return true;
}
@@ -70,7 +70,7 @@ bool FinalProtected::VisitFieldDecl(FieldDecl const * fieldDecl)
fieldDecl = fieldDecl->getCanonicalDecl();
report(DiagnosticsEngine::Warning,
"final class should not have protected members - convert them to private",
- compat::getBeginLoc(fieldDecl))
+ fieldDecl->getBeginLoc())
<< fieldDecl->getSourceRange();
return true;
}