aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-08 18:32:25 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-08 18:32:25 +0000
commita95342c9d4209379c07ac8da553688eacf500f98 (patch)
treeb2b9bc588f018d16144547c31798772ab5cc9fd6 /lib/Sema/SemaOverload.cpp
parent0ca4c58cba09ea4cb45348ea223227234a363e94 (diff)
A leak is better than a double-free while I figure out how to address
this issue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r--lib/Sema/SemaOverload.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index 6f7063b98f..136183a0ac 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -425,11 +425,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();
}