mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Gracefully destroy MDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e2ad47e415
commit
9c0aa85337
@ -203,6 +203,9 @@ public:
|
||||
AggZeroConstants.freeConstants();
|
||||
NullPtrConstants.freeConstants();
|
||||
UndefValueConstants.freeConstants();
|
||||
for (FoldingSet<MDNode>::iterator I=MDNodeSet.begin(),
|
||||
E =MDNodeSet.end(); I != E; ++I)
|
||||
I->dropAllReferences();
|
||||
for (IntMapTy::iterator I=IntConstants.begin(), E=IntConstants.end();
|
||||
I != E; ++I) {
|
||||
if (I->second->use_empty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user