diff --git a/unittests/Frontend/OutputStreamTest.cpp b/unittests/Frontend/OutputStreamTest.cpp index 14537ecdc56c..6a867bf053cb 100644 --- a/unittests/Frontend/OutputStreamTest.cpp +++ b/unittests/Frontend/OutputStreamTest.cpp @@ -58,6 +58,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) { std::string VerboseBuffer; raw_string_ostream VerboseStream(VerboseBuffer); + Compiler.setOutputStream(std::make_unique()); Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( @@ -86,6 +87,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamOwned) { std::unique_ptr VerboseStream = std::make_unique(VerboseBuffer); + Compiler.setOutputStream(std::make_unique()); Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics(