Destroy MDNodes while destructing llvm context.

llvm-svn: 95903
This commit is contained in:
Devang Patel 2010-02-11 19:35:10 +00:00
parent 63870006bf
commit b41ff23af9

View File

@ -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) {