diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-03 17:23:34 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-03 17:23:34 +0000 |
commit | ea04672c82db08338fbe65f53afacca069dcf8b7 (patch) | |
tree | 9e69e0d6b7b2c888f58db1be9f9b36b7abb63799 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | a17a4326d01be3ab80e6e73c168a8eb70100800c (diff) | |
download | bcm5719-llvm-ea04672c82db08338fbe65f53afacca069dcf8b7.tar.gz bcm5719-llvm-ea04672c82db08338fbe65f53afacca069dcf8b7.zip |
Fix leak from r210059
Also revert r210096 which temporarily disabled the test while this was being
investigated.
llvm-svn: 210115
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 88f02b4e6a0..a197faece1f 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -568,7 +568,7 @@ static raw_ostream *GetOutputStream(CompilerInstance &CI, case Backend_EmitNothing: return nullptr; case Backend_EmitMCNull: - return new raw_null_ostream(); + return CI.createNullOutputFile(); case Backend_EmitObj: return CI.createDefaultOutputFile(true, InFile, "o"); } |