diff options
Diffstat (limited to 'clang/tools/clang-refactor/TestSupport.cpp')
-rw-r--r-- | clang/tools/clang-refactor/TestSupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/clang-refactor/TestSupport.cpp b/clang/tools/clang-refactor/TestSupport.cpp index bad640227f1..7d5d5471dcd 100644 --- a/clang/tools/clang-refactor/TestSupport.cpp +++ b/clang/tools/clang-refactor/TestSupport.cpp @@ -41,8 +41,8 @@ void TestSelectionRangesInFile::dump(raw_ostream &OS) const { bool TestSelectionRangesInFile::foreachRange( const SourceManager &SM, llvm::function_ref<void(SourceRange)> Callback) const { - const FileEntry *FE = SM.getFileManager().getFile(Filename); - FileID FID = FE ? SM.translateFile(FE) : FileID(); + auto FE = SM.getFileManager().getFile(Filename); + FileID FID = FE ? SM.translateFile(*FE) : FileID(); if (!FE || FID.isInvalid()) { llvm::errs() << "error: -selection=test:" << Filename << " : given file is not in the target TU"; |