[clang][test] Use a physical copy of FS
authorMikhail Goncharov <goncharov.mikhail@gmail.com>
Tue, 6 Jun 2023 15:35:37 +0000 (17:35 +0200)
committerMikhail Goncharov <goncharov.mikhail@gmail.com>
Tue, 6 Jun 2023 15:36:35 +0000 (17:36 +0200)
(missing piece from https://reviews.llvm.org/D152265)
476e7c49ecb762df1d68273696b06c36feb0fd96

clang/unittests/Serialization/ModuleCacheTest.cpp

index 1e152a3..c3e347f 100644 (file)
@@ -149,6 +149,7 @@ TEST_F(ModuleCacheTest, CachedModuleNewPathAllowErrors) {
       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",