diff options
| author | Sylvestre Ledru <sylvestre@debian.org> | 2024-11-21 07:04:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-21 07:04:23 -0500 |
| commit | 2a4a50d85689bb2ac51258c485fceb64dfb6cd73 (patch) | |
| tree | 5b267500546cc06032b49c0153f6aa1e92cbb74c /clang/unittests/Serialization/ModuleCacheTest.cpp | |
| parent | 0b06301a1d839eb5f73559f6c3daf9049c34f3af (diff) | |
Revert "[NFC] Explicitly pass a VFS when creating DiagnosticsEngine (#115852)"revert-115852-update_ci_vfs
This reverts commit bdd10d9d249bd1c2a45e3de56a5accd97e953458.
Diffstat (limited to 'clang/unittests/Serialization/ModuleCacheTest.cpp')
| -rw-r--r-- | clang/unittests/Serialization/ModuleCacheTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/unittests/Serialization/ModuleCacheTest.cpp b/clang/unittests/Serialization/ModuleCacheTest.cpp index 6ceee1c6536c..a7ca98549b41 100644 --- a/clang/unittests/Serialization/ModuleCacheTest.cpp +++ b/clang/unittests/Serialization/ModuleCacheTest.cpp @@ -106,11 +106,11 @@ TEST_F(ModuleCacheTest, CachedModuleNewPath) { SmallString<256> MCPArg("-fmodules-cache-path="); MCPArg.append(ModuleCachePath); - CreateInvocationOptions CIOpts; - CIOpts.VFS = llvm::vfs::createPhysicalFileSystem(); IntrusiveRefCntPtr<DiagnosticsEngine> Diags = - CompilerInstance::createDiagnostics(*CIOpts.VFS, new DiagnosticOptions()); + CompilerInstance::createDiagnostics(new DiagnosticOptions()); + CreateInvocationOptions CIOpts; CIOpts.Diags = Diags; + CIOpts.VFS = llvm::vfs::createPhysicalFileSystem(); // First run should pass with no errors const char *Args[] = {"clang", "-fmodules", "-Fframeworks", @@ -156,11 +156,11 @@ TEST_F(ModuleCacheTest, CachedModuleNewPathAllowErrors) { SmallString<256> MCPArg("-fmodules-cache-path="); MCPArg.append(ModuleCachePath); - CreateInvocationOptions CIOpts; - CIOpts.VFS = llvm::vfs::createPhysicalFileSystem(); IntrusiveRefCntPtr<DiagnosticsEngine> Diags = - CompilerInstance::createDiagnostics(*CIOpts.VFS, new DiagnosticOptions()); + CompilerInstance::createDiagnostics(new DiagnosticOptions()); + CreateInvocationOptions CIOpts; CIOpts.Diags = Diags; + CIOpts.VFS = llvm::vfs::createPhysicalFileSystem(); // First run should pass with no errors const char *Args[] = {"clang", "-fmodules", "-Fframeworks", |
