[clang] [clang] Reuse configured VFS for chained includes (PR #173288)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 5 10:50:08 PST 2026
================
@@ -124,7 +124,7 @@ clang::createChainedIncludesSource(CompilerInstance &CI,
auto Clang = std::make_unique<CompilerInstance>(
std::move(CInvok), CI.getPCHContainerOperations());
- Clang->createVirtualFileSystem();
+ Clang->setVirtualFileSystem(CI.getVirtualFileSystemPtr());
----------------
benlangmuir wrote:
This deserves a comment that it is valid because none of the changes to the invocation above impact the VFS (e.g. no -ivfsoverlay changes).
https://github.com/llvm/llvm-project/pull/173288
More information about the cfe-commits
mailing list