diff options
Diffstat (limited to 'compilerplugins/clang/memoryvar.cxx')
-rw-r--r-- | compilerplugins/clang/memoryvar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/memoryvar.cxx b/compilerplugins/clang/memoryvar.cxx index 17cb2701acd0..590af94b7c7a 100644 --- a/compilerplugins/clang/memoryvar.cxx +++ b/compilerplugins/clang/memoryvar.cxx @@ -50,7 +50,7 @@ private: StringRef MemoryVar::getFilename(SourceLocation loc) { SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(loc); - StringRef name { compiler.getSourceManager().getFilename(spellingLocation) }; + StringRef name { getFileNameOfSpellingLoc(spellingLocation) }; return name; } |