projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e834f42
)
Plug a memory leak in NeonEmitter: Intrinsics allocated were never released.
author
Yaron Keren
<yaron.keren@gmail.com>
Thu, 6 Aug 2015 07:28:36 +0000
(07:28 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Thu, 6 Aug 2015 07:28:36 +0000
(07:28 +0000)
llvm-svn: 244196
clang/utils/TableGen/NeonEmitter.cpp
patch
|
blob
|
history
diff --git
a/clang/utils/TableGen/NeonEmitter.cpp
b/clang/utils/TableGen/NeonEmitter.cpp
index
7644ae2
..
c3a387e
100644
(file)
--- 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);