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 | 564767cf3991268fa957fc729497d4cdfa6a7481 (patch) | |
| tree | 5c686a125f0a56ed21688dfca5c2d6be9435253f /clang/lib/Sema/SemaOverload.cpp | |
| parent | 461761d68f7393ef5205c6493a36c15ac79f6c71 (diff) | |
| download | bcm5719-llvm-564767cf3991268fa957fc729497d4cdfa6a7481.tar.gz bcm5719-llvm-564767cf3991268fa957fc729497d4cdfa6a7481.zip | |
A leak is better than a double-free while I figure out how to address
this issue.
llvm-svn: 103343
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 5 | 
1 files changed, 0 insertions, 5 deletions
| diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 6f7063b98f3..136183a0acc 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/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();  } | 

