mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Destroy MDNodes while destructing llvm context.
llvm-svn: 95903
This commit is contained in:
parent
63870006bf
commit
b41ff23af9
@ -224,7 +224,10 @@ public:
|
||||
if (I->second->use_empty())
|
||||
delete I->second;
|
||||
}
|
||||
MDNodeSet.clear();
|
||||
while (!MDNodeSet.empty()) {
|
||||
MDNode *N = &(*MDNodeSet.begin());
|
||||
N->destroy();
|
||||
}
|
||||
AlwaysOpaqueTy->dropRef();
|
||||
for (OpaqueTypesTy::iterator I = OpaqueTypes.begin(), E = OpaqueTypes.end();
|
||||
I != E; ++I) {
|
||||
|
Loading…
Reference in New Issue
Block a user