Plug a memory leak in NeonEmitter: Intrinsics allocated were never released.

llvm-svn: 244196
This commit is contained in:
Yaron Keren 2015-08-06 07:28:36 +00:00
parent e834f42073
commit 9f168530a2
1 changed files with 6 additions and 0 deletions

View File

@ -532,6 +532,12 @@ public:
ClassMap[NoTestOpI] = ClassNoTest;
}
~NeonEmitter() {
for (auto &P : IntrinsicMap)
for (Intrinsic *I : P.second)
delete I;
}
// run - Emit arm_neon.h.inc
void run(raw_ostream &o);