summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/constantfunction.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/constantfunction.cxx')
-rw-r--r--compilerplugins/clang/store/constantfunction.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/store/constantfunction.cxx b/compilerplugins/clang/store/constantfunction.cxx
index 3d0b911e863c..a29556723748 100644
--- a/compilerplugins/clang/store/constantfunction.cxx
+++ b/compilerplugins/clang/store/constantfunction.cxx
@@ -45,7 +45,7 @@ public:
StringRef ConstantFunction::getFilename(const FunctionDecl* functionDecl)
{
SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(functionDecl->getCanonicalDecl()->getNameInfo().getLoc());
- StringRef name { getFileNameOfSpellingLoc(spellingLocation) };
+ StringRef name { getFilenameOfLocation(spellingLocation) };
return name;
}