From ea04672c82db08338fbe65f53afacca069dcf8b7 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 3 Jun 2014 17:23:34 +0000 Subject: Fix leak from r210059 Also revert r210096 which temporarily disabled the test while this was being investigated. llvm-svn: 210115 --- clang/lib/Frontend/CompilerInstance.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/Frontend') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index c65d34bd2a9..ac20d7a28e5 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -478,6 +478,12 @@ CompilerInstance::createDefaultOutputFile(bool Binary, /*UseTemporary=*/true); } +llvm::raw_null_ostream *CompilerInstance::createNullOutputFile() { + llvm::raw_null_ostream *OS = new llvm::raw_null_ostream(); + addOutputFile(OutputFile("", "", OS)); + return OS; +} + llvm::raw_fd_ostream * CompilerInstance::createOutputFile(StringRef OutputPath, bool Binary, bool RemoveFileOnSignal, -- cgit v1.2.3