[cfe-commits] r61163 - /cfe/trunk/lib/AST/ASTContext.cpp
Nuno Lopes
nunoplopes at sapo.pt
Wed Dec 17 14:57:25 PST 2008
>> + {
>> + llvm::DenseMap<const ObjCInterfaceDecl*, const
>> RecordDecl*>::iterator
>> + I = ASTRecordForInterface.begin(), E =
>> ASTRecordForInterface.end();
>> + while (I != E) {
>> + RecordDecl *R = const_cast<RecordDecl*>((I++)->second);
>> + R->Destroy(*this);
>
> Is this correct Nuno?
Well, I wouldn't commit it if I though otherwise :) So I think it's
"correct".
Entries of ASTRecordForInterface aren't allocated with the regular 'new',
but with LLVM's allocator, so they have to be destroyed with that method.
Nuno
More information about the cfe-commits
mailing list