diff options
Diffstat (limited to 'clang/unittests/Frontend/OutputStreamTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/OutputStreamTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp index 0eda3a1..dfb5a54 100644 --- a/clang/unittests/Frontend/OutputStreamTest.cpp +++ b/clang/unittests/Frontend/OutputStreamTest.cpp @@ -61,10 +61,10 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) { raw_string_ostream VerboseStream(VerboseBuffer); Compiler.setOutputStream(std::make_unique<raw_null_ostream>()); - IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); - Compiler.createDiagnostics( - *llvm::vfs::getRealFileSystem(), - new TextDiagnosticPrinter(llvm::nulls(), &*DiagOpts), true); + DiagnosticOptions DiagOpts; + Compiler.createDiagnostics(*llvm::vfs::getRealFileSystem(), + new TextDiagnosticPrinter(llvm::nulls(), DiagOpts), + true); Compiler.setVerboseOutputStream(VerboseStream); bool Success = ExecuteCompilerInvocation(&Compiler); @@ -91,10 +91,10 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamOwned) { std::make_unique<raw_string_ostream>(VerboseBuffer); Compiler.setOutputStream(std::make_unique<raw_null_ostream>()); - IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); + DiagnosticOptions DiagOpts; Compiler.createDiagnostics( *llvm::vfs::getRealFileSystem(), - new TextDiagnosticPrinter(llvm::nulls(), &*DiagOpts), true); + new TextDiagnosticPrinter(llvm::nulls(), DiagOpts), true); Compiler.setVerboseOutputStream(std::move(VerboseStream)); Success = ExecuteCompilerInvocation(&Compiler); |