summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-02-08 23:07:23 +0000
committerJohn McCall <rjmccall@apple.com>2010-02-08 23:07:23 +0000
commitbc077cf5897af9109ffc8fd778d2ee9d9759ef21 (patch)
tree8fa374a294a0fe49bc86a2287e33f43db1de7b84 /clang/lib/Sema/SemaLookup.cpp
parentd9d7186dc0205a459a38bd24610305031376933e (diff)
downloadbcm5719-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/SemaLookup.cpp')
-rw-r--r--clang/lib/Sema/SemaLookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 3c8ab435a86..8cbcf127a43 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud