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 | b830eaf3e0eb5fb7a548dc78fff33b2e3659704a (patch) | |
| tree | a9eefeab4297f498d311184e959b74e2eca7ccd0 /lib/CodeGen/CodeGenAction.cpp | |
| parent | 0a775494ece0c48015b3c249227a2379e079a0b1 (diff) | |
| download | clang-b830eaf3e0eb5fb7a548dc78fff33b2e3659704a.tar.gz clang-b830eaf3e0eb5fb7a548dc78fff33b2e3659704a.tar.bz2 clang-b830eaf3e0eb5fb7a548dc78fff33b2e3659704a.tar.xz | |
Fix leak from r210059
Also revert r210096 which temporarily disabled the test while this was being
investigated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 88f02b4e6a..a197faece1 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/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"); } |
