diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-08 18:32:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-08 18:32:25 +0000 |
commit | a95342c9d4209379c07ac8da553688eacf500f98 (patch) | |
tree | b2b9bc588f018d16144547c31798772ab5cc9fd6 /lib/Sema/SemaOverload.cpp | |
parent | 0ca4c58cba09ea4cb45348ea223227234a363e94 (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.cpp | 5 |
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(); } |