From e2a885537f11f8d9ced1c80c2c90069ab5adeb1d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 22 May 2025 12:44:20 -0700 Subject: Revert "[clang] Remove intrusive reference count from `DiagnosticOptions` (#139584)" This reverts commit 9e306ad4600c4d3392c194a8be88919ee758425c. Multiple builtbot failures have been reported: https://github.com/llvm/llvm-project/pull/139584 --- clang/unittests/Frontend/CompilerInvocationTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp') diff --git a/clang/unittests/Frontend/CompilerInvocationTest.cpp b/clang/unittests/Frontend/CompilerInvocationTest.cpp index 75390aa..94ab9fe 100644 --- a/clang/unittests/Frontend/CompilerInvocationTest.cpp +++ b/clang/unittests/Frontend/CompilerInvocationTest.cpp @@ -29,7 +29,6 @@ using ::testing::StartsWith; namespace { class CommandLineTest : public ::testing::Test { public: - DiagnosticOptions DiagOpts; IntrusiveRefCntPtr Diags; SmallVector GeneratedArgs; BumpPtrAllocator Alloc; @@ -42,7 +41,7 @@ public: CommandLineTest() : Diags(CompilerInstance::createDiagnostics( - *llvm::vfs::getRealFileSystem(), DiagOpts, + *llvm::vfs::getRealFileSystem(), new DiagnosticOptions(), new TextDiagnosticBuffer())), StringPool(Alloc) {} }; -- cgit v1.1