aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-08 20:20:05 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-08 20:20:05 +0000
commitaaa045dbe74366f9dba334fd01c797087898c1cc (patch)
treeb063be98140b8680e0a71f8b10d5b3157ea0d92c /lib/Sema/SemaOverload.cpp
parentff5adac099e9be58e16cf118ca3eb3f3e570c616 (diff)
Don't destroy the data associated with an overload resolution candidate; it's ASTContext-allocated now
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r--lib/Sema/SemaOverload.cpp8
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();
}