diff options
| author | John McCall <rjmccall@apple.com> | 2010-02-08 23:07:23 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-02-08 23:07:23 +0000 |
| commit | bc077cf5897af9109ffc8fd778d2ee9d9759ef21 (patch) | |
| tree | 8fa374a294a0fe49bc86a2287e33f43db1de7b84 /clang/lib/Sema/SemaDeclCXX.cpp | |
| parent | d9d7186dc0205a459a38bd24610305031376933e (diff) | |
| download | bcm5719-llvm-bc077cf5897af9109ffc8fd778d2ee9d9759ef21.tar.gz bcm5719-llvm-bc077cf5897af9109ffc8fd778d2ee9d9759ef21.zip | |
Thread a source location into the template-argument deduction routines. There
may be some other places that could take advantage of this new information,
but I haven't really looked yet.
llvm-svn: 95600
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index e156b62fdb8..67c08225b4e 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -3854,7 +3854,7 @@ Sema::getAssignOperatorMethod(SourceLocation CurrentLocation, RHSType, CurrentLocation)); Expr *Args[2] = { &*LHS, &*RHS }; - OverloadCandidateSet CandidateSet; + OverloadCandidateSet CandidateSet(CurrentLocation); AddMemberOperatorCandidates(clang::OO_Equal, SourceLocation(), Args, 2, CandidateSet); OverloadCandidateSet::iterator Best; @@ -4186,7 +4186,7 @@ Sema::TryInitializationByConstructor(QualType ClassType, SourceLocation Loc, InitializationKind Kind) { // Build the overload candidate set - OverloadCandidateSet CandidateSet; + OverloadCandidateSet CandidateSet(Loc); AddConstructorInitializationCandidates(*this, ClassType, Args, NumArgs, Kind, CandidateSet); @@ -4443,7 +4443,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType, CXXRecordDecl *T2RecordDecl = dyn_cast<CXXRecordDecl>(T2->getAs<RecordType>()->getDecl()); - OverloadCandidateSet CandidateSet; + OverloadCandidateSet CandidateSet(DeclLoc); const UnresolvedSetImpl *Conversions = T2RecordDecl->getVisibleConversionFunctions(); for (UnresolvedSetImpl::iterator I = Conversions->begin(), |

