diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-19 07:06:46 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-19 07:06:46 +0000 |
commit | 509bcb134d8d1a07f1e500e2e686d214ab7bcd8e (patch) | |
tree | de4c62d382cf5c5a08f6b28e82ef766528742e0f /lib | |
parent | 4c42a6de9f5456cc1b28f2d37db589f580f2adc7 (diff) | |
download | external_llvm-509bcb134d8d1a07f1e500e2e686d214ab7bcd8e.zip external_llvm-509bcb134d8d1a07f1e500e2e686d214ab7bcd8e.tar.gz external_llvm-509bcb134d8d1a07f1e500e2e686d214ab7bcd8e.tar.bz2 |
Remove a memory leak from the CBackend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index b1ba0d2..0c265ad 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -111,7 +111,8 @@ namespace { static char ID; explicit CWriter(formatted_raw_ostream &o) : FunctionPass(&ID), Out(o), IL(0), Mang(0), LI(0), - TheModule(0), TAsm(0), TD(0), OpaqueCounter(0), NextAnonValueNumber(0) { + TheModule(0), TAsm(0), TCtx(0), TD(0), OpaqueCounter(0), + NextAnonValueNumber(0) { FPCounter = 0; } @@ -147,6 +148,8 @@ namespace { delete IL; delete TD; delete Mang; + delete TCtx; + delete TAsm; FPConstantMap.clear(); TypeNames.clear(); ByValParams.clear(); |