summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/badvectorinit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/badvectorinit.cxx')
-rw-r--r--compilerplugins/clang/store/badvectorinit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/store/badvectorinit.cxx b/compilerplugins/clang/store/badvectorinit.cxx
index 68cba18de580..67c50fb59189 100644
--- a/compilerplugins/clang/store/badvectorinit.cxx
+++ b/compilerplugins/clang/store/badvectorinit.cxx
@@ -113,7 +113,7 @@ bool BadVectorInit::TraverseFunctionDecl(FunctionDecl* decl)
StringRef BadVectorInit::getFilename(SourceLocation loc)
{
SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(loc);
- StringRef name { compiler.getSourceManager().getFilename(spellingLocation) };
+ StringRef name { getFileNameOfSpellingLoc(spellingLocation) };
return name;
}