Don't destroy the data associated with an overload resolution candidate; it's ASTContext-allocated now

llvm-svn: 103350
This commit is contained in:
Douglas Gregor 2010-05-08 20:20:05 +00:00
parent 90cf2c98bb
commit b02d6b3b94
1 changed files with 1 additions and 7 deletions

View File

@ -341,7 +341,7 @@ void OverloadCandidate::DeductionFailureInfo::Destroy() {
case Sema::TDK_Inconsistent:
case Sema::TDK_InconsistentQuals:
delete static_cast<DFIParamWithArguments*>(Data);
// FIXME: Destroy the data?
Data = 0;
break;
@ -459,12 +459,6 @@ OverloadCandidate::DeductionFailureInfo::getSecondArg() {
}
void OverloadCandidateSet::clear() {
//
for (iterator C = begin(), CEnd = end(); C != CEnd; ++C) {
if (C->FailureKind == ovl_fail_bad_deduction)
C->DeductionFailure.Destroy();
}
inherited::clear();
Functions.clear();
}