mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Remove a memory leak from the CBackend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c42a6de9f
commit
509bcb134d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user