From: Mikhail Goncharov Date: Tue, 6 Jun 2023 15:35:37 +0000 (+0200) Subject: [clang][test] Use a physical copy of FS X-Git-Tag: upstream/17.0.6~5990 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4faa6c6699149de504216173ea34f33765193905;p=platform%2Fupstream%2Fllvm.git [clang][test] Use a physical copy of FS (missing piece from https://reviews.llvm.org/D152265) 476e7c49ecb762df1d68273696b06c36feb0fd96 --- diff --git a/clang/unittests/Serialization/ModuleCacheTest.cpp b/clang/unittests/Serialization/ModuleCacheTest.cpp index 1e152a3..c3e347f 100644 --- a/clang/unittests/Serialization/ModuleCacheTest.cpp +++ b/clang/unittests/Serialization/ModuleCacheTest.cpp @@ -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",