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 | 5769d6195087229770d7ac90449443e026c47103 (patch) | |
tree | 1445a8e906734648688f9edaa79ff9c9e30c3d6a /lib/Sema/SemaLookup.cpp | |
parent | 0087e1a12b67b6bb032a72ea485a863daeccf55b (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 3c8ab435a8..8cbcf127a4 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -493,7 +493,7 @@ static bool LookupDirect(LookupResult &R, const DeclContext *DC) { // result), perform template argument deduction and place the // specialization into the result set. We do this to avoid forcing all // callers to perform special deduction for conversion functions. - Sema::TemplateDeductionInfo Info(R.getSema().Context); + Sema::TemplateDeductionInfo Info(R.getSema().Context, R.getNameLoc()); FunctionDecl *Specialization = 0; const FunctionProtoType *ConvProto |