diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-17 01:52:14 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-04-17 01:52:14 +0000 |
| commit | 13e47c43584d00bb656d62c2125ba5b1ebbbf1f2 (patch) | |
| tree | cc969be6ade7e2a7e9ecb098b637cc9438c3ecbd /lib/Sema/SemaCodeComplete.cpp | |
| parent | 49c8dad960b99faa2f1f14566317b4e3d2cb7b0a (diff) | |
| download | clang-13e47c43584d00bb656d62c2125ba5b1ebbbf1f2.tar.gz clang-13e47c43584d00bb656d62c2125ba5b1ebbbf1f2.tar.bz2 clang-13e47c43584d00bb656d62c2125ba5b1ebbbf1f2.tar.xz | |
Implement [over.match.oper]p3 properly, by filtering the non-candidates out
when building the candidate set, rather than trying to contort name lookup into
handling this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
| -rw-r--r-- | lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index 38f7967f9f..4b23c37a63 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -3833,7 +3833,7 @@ void Sema::CodeCompleteCall(Scope *S, Expr *FnIn, ArrayRef<Expr *> Args) { // Build an overload candidate set based on the functions we find. SourceLocation Loc = Fn->getExprLoc(); - OverloadCandidateSet CandidateSet(Loc); + OverloadCandidateSet CandidateSet(Loc, OverloadCandidateSet::CSK_Normal); // FIXME: What if we're calling something that isn't a function declaration? // FIXME: What if we're calling a pseudo-destructor? |
