mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 08:29:08 +00:00
Cleanup the AttributeSetNodes that we create.
llvm-svn: 173311
This commit is contained in:
parent
1898f7c8a5
commit
76504777f5
@ -109,6 +109,13 @@ LLVMContextImpl::~LLVMContextImpl() {
|
||||
delete &*Elem;
|
||||
}
|
||||
|
||||
// Destroy attribute node lists.
|
||||
for (FoldingSetIterator<AttributeSetNode> I = AttrsSetNodes.begin(),
|
||||
E = AttrsSetNodes.end(); I != E; ) {
|
||||
FoldingSetIterator<AttributeSetNode> Elem = I++;
|
||||
delete &*Elem;
|
||||
}
|
||||
|
||||
// Destroy MDNodes. ~MDNode can move and remove nodes between the MDNodeSet
|
||||
// and the NonUniquedMDNodes sets, so copy the values out first.
|
||||
SmallVector<MDNode*, 8> MDNodes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user