diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2024-11-21 13:04:30 +0100 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2024-11-21 13:04:30 +0100 |
commit | a1153cd6fedd4c906a9840987934ca4712e34cb2 (patch) | |
tree | 5b267500546cc06032b49c0153f6aa1e92cbb74c /clang/unittests/Frontend/UtilsTest.cpp | |
parent | 0b06301a1d839eb5f73559f6c3daf9049c34f3af (diff) | |
download | llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.zip llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.tar.gz llvm-a1153cd6fedd4c906a9840987934ca4712e34cb2.tar.bz2 |
Revert "[NFC] Explicitly pass a VFS when creating DiagnosticsEngine (#115852)"
Reverted for causing:
https://github.com/llvm/llvm-project/issues/117145
This reverts commit bdd10d9d249bd1c2a45e3de56a5accd97e953458.
Diffstat (limited to 'clang/unittests/Frontend/UtilsTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/UtilsTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Frontend/UtilsTest.cpp b/clang/unittests/Frontend/UtilsTest.cpp index 304fbe2..ae014d3 100644 --- a/clang/unittests/Frontend/UtilsTest.cpp +++ b/clang/unittests/Frontend/UtilsTest.cpp @@ -28,9 +28,9 @@ TEST(BuildCompilerInvocationTest, RecoverMultipleJobs) { clang::IgnoringDiagConsumer D; CreateInvocationOptions Opts; Opts.RecoverOnError = true; + Opts.Diags = clang::CompilerInstance::createDiagnostics(new DiagnosticOptions, + &D, false); Opts.VFS = new llvm::vfs::InMemoryFileSystem(); - Opts.Diags = clang::CompilerInstance::createDiagnostics( - *Opts.VFS, new DiagnosticOptions, &D, false); std::unique_ptr<CompilerInvocation> CI = createInvocation(Args, Opts); ASSERT_TRUE(CI); EXPECT_THAT(CI->TargetOpts->Triple, testing::StartsWith("i386-")); @@ -46,7 +46,7 @@ TEST(BuildCompilerInvocationTest, ProbePrecompiled) { clang::IgnoringDiagConsumer D; llvm::IntrusiveRefCntPtr<DiagnosticsEngine> CommandLineDiagsEngine = - clang::CompilerInstance::createDiagnostics(*FS, new DiagnosticOptions, &D, + clang::CompilerInstance::createDiagnostics(new DiagnosticOptions, &D, false); // Default: ProbePrecompiled=false CreateInvocationOptions CIOpts; |