>> + {
>> + 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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits