[llvm-commits] [llvm] r98941 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp
Jeffrey Yasskin
jyasskin at google.com
Fri Mar 19 00:06:46 PDT 2010
Author: jyasskin
Date: Fri Mar 19 02:06:46 2010
New Revision: 98941
URL: http://llvm.org/viewvc/llvm-project?rev=98941&view=rev
Log:
Remove a memory leak from the CBackend.
Modified:
llvm/trunk/lib/Target/CBackend/CBackend.cpp
Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=98941&r1=98940&r2=98941&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Fri Mar 19 02:06:46 2010
@@ -111,7 +111,8 @@
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 @@
delete IL;
delete TD;
delete Mang;
+ delete TCtx;
+ delete TAsm;
FPConstantMap.clear();
TypeNames.clear();
ByValParams.clear();
More information about the llvm-commits
mailing list