diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 517574b595..6281a324a2 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -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(); } |