summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/stylepolice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/stylepolice.cxx')
-rw-r--r--compilerplugins/clang/store/stylepolice.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/store/stylepolice.cxx b/compilerplugins/clang/store/stylepolice.cxx
index f8536108a37d..e70b74b2e43c 100644
--- a/compilerplugins/clang/store/stylepolice.cxx
+++ b/compilerplugins/clang/store/stylepolice.cxx
@@ -38,7 +38,7 @@ private:
StringRef StylePolice::getFilename(SourceLocation loc)
{
SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(loc);
- StringRef name { getFileNameOfSpellingLoc(spellingLocation) };
+ StringRef name { getFilenameOfLocation(spellingLocation) };
return name;
}