aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-11-04 18:31:40 -0500
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-12-03 16:10:59 -0800
commit99b823c2eba391877a0fcd6bc5f03f0d9f0077cb (patch)
treefe380850e15ca3198f9ae93b418f4cdd7f13547a /clang/lib/Frontend/ASTUnit.cpp
parent3fcdf9ca78cbba69ab20d43009826403c2d4c110 (diff)
downloadllvm-99b823c2eba391877a0fcd6bc5f03f0d9f0077cb.zip
llvm-99b823c2eba391877a0fcd6bc5f03f0d9f0077cb.tar.gz
llvm-99b823c2eba391877a0fcd6bc5f03f0d9f0077cb.tar.bz2
Frontend: Remove redundant call to CompilerInstance::setFileManager, NFC
`ASTUnit::Parse` sets up the `FileManager` earlier in the same function, ensuring `ASTUnit::getFileManager()` matches `Clang->getFileManager()`. Remove the later call to `setFileManager(getFileManager())` since it does nothing. Differential Revision: https://reviews.llvm.org/D90888
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r--clang/lib/Frontend/ASTUnit.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index c2aba41..c8ac7eaa 100644
--- a/clang/lib/Frontend/ASTUnit.cpp
+++ b/clang/lib/Frontend/ASTUnit.cpp
@@ -1186,9 +1186,6 @@ bool ASTUnit::Parse(std::shared_ptr<PCHContainerOperations> PCHContainerOps,
TopLevelDeclsInPreamble.clear();
}
- // Create a file manager object to provide access to and cache the filesystem.
- Clang->setFileManager(&getFileManager());
-
// Create the source manager.
Clang->setSourceManager(&getSourceManager());