forked from OSchip/llvm-project
Plug a memory leak in NeonEmitter: Intrinsics allocated were never released.
llvm-svn: 244196
This commit is contained in:
parent
e834f42073
commit
9f168530a2
|
@ -532,6 +532,12 @@ public:
|
||||||
ClassMap[NoTestOpI] = ClassNoTest;
|
ClassMap[NoTestOpI] = ClassNoTest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~NeonEmitter() {
|
||||||
|
for (auto &P : IntrinsicMap)
|
||||||
|
for (Intrinsic *I : P.second)
|
||||||
|
delete I;
|
||||||
|
}
|
||||||
|
|
||||||
// run - Emit arm_neon.h.inc
|
// run - Emit arm_neon.h.inc
|
||||||
void run(raw_ostream &o);
|
void run(raw_ostream &o);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue