diff options
author | Pawel Wodnicki <pawel@32bitmicro.com> | 2012-11-21 22:21:40 +0000 |
---|---|---|
committer | Pawel Wodnicki <pawel@32bitmicro.com> | 2012-11-21 22:21:40 +0000 |
commit | 3e2cbf9d08ffd6f26302c19fdc7997e441c741e9 (patch) | |
tree | 03f936edbb07aad478f391f460fe3602da8044e4 /lib/VMCore/LLVMContextImpl.cpp | |
parent | 7022c651cab8a4e3e310e024a2028eb9fa5b482e (diff) | |
download | llvm-3e2cbf9d08ffd6f26302c19fdc7997e441c741e9.tar.gz llvm-3e2cbf9d08ffd6f26302c19fdc7997e441c741e9.tar.bz2 llvm-3e2cbf9d08ffd6f26302c19fdc7997e441c741e9.tar.xz |
Reverting 168457
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.cpp')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/VMCore/LLVMContextImpl.cpp b/lib/VMCore/LLVMContextImpl.cpp index d35d2844b8..74247bdde1 100644 --- a/lib/VMCore/LLVMContextImpl.cpp +++ b/lib/VMCore/LLVMContextImpl.cpp @@ -97,18 +97,11 @@ LLVMContextImpl::~LLVMContextImpl() { // Destroy attributes. for (FoldingSetIterator<AttributesImpl> I = AttrsSet.begin(), - E = AttrsSet.end(); I != E; ) { + E = AttrsSet.end(); I != E;) { FoldingSetIterator<AttributesImpl> Elem = I++; delete &*Elem; } - // Destroy attribute lists. - for (FoldingSetIterator<AttributeListImpl> I = AttrsLists.begin(), - E = AttrsLists.end(); I != E; ) { - FoldingSetIterator<AttributeListImpl> 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; |