diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-08-06 07:28:36 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-08-06 07:28:36 +0000 |
commit | 9f168530a2246ee36a39b1e75f6074a1b0ae320c (patch) | |
tree | 89766082212b2d99fd142c5a7b6bd6a1413dacc5 /clang/utils | |
parent | e834f4207320f4a0eb809e3d7494c8055c668cb3 (diff) | |
download | bcm5719-llvm-9f168530a2246ee36a39b1e75f6074a1b0ae320c.tar.gz bcm5719-llvm-9f168530a2246ee36a39b1e75f6074a1b0ae320c.zip |
Plug a memory leak in NeonEmitter: Intrinsics allocated were never released.
llvm-svn: 244196
Diffstat (limited to 'clang/utils')
-rw-r--r-- | clang/utils/TableGen/NeonEmitter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/utils/TableGen/NeonEmitter.cpp b/clang/utils/TableGen/NeonEmitter.cpp index 7644ae2c04d..c3a387e6063 100644 --- a/clang/utils/TableGen/NeonEmitter.cpp +++ b/clang/utils/TableGen/NeonEmitter.cpp @@ -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); |