[cfe-commits] r103343 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Douglas Gregor
dgregor at apple.com
Sat May 8 11:32:25 PDT 2010
Author: dgregor
Date: Sat May 8 13:32:25 2010
New Revision: 103343
URL: http://llvm.org/viewvc/llvm-project?rev=103343&view=rev
Log:
A leak is better than a double-free while I figure out how to address
this issue.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=103343&r1=103342&r2=103343&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Sat May 8 13:32:25 2010
@@ -425,11 +425,6 @@
}
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();
}
More information about the cfe-commits
mailing list