refcount BitCodeAbbrev objects

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2007-05-04 17:35:19 +00:00
parent f0799fe155
commit 299b2d2070
3 changed files with 13 additions and 7 deletions

View File

@ -160,7 +160,7 @@ public:
// Delete all abbrevs.
for (unsigned i = 0, e = CurAbbrevs.size(); i != e; ++i)
delete CurAbbrevs[i];
CurAbbrevs[i]->dropRef();
const Block &B = BlockScope.back();