mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 03:37:31 +00:00
Destroy MDNodes while destructing llvm context.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b917c47c98
commit
11dbf8ee69
@ -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…
x
Reference in New Issue
Block a user