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/SemaTemplate.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/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 6a094e48e8f..b77702ba3fa 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -3861,7 +3861,7 @@ Sema::CheckFunctionTemplateSpecialization(FunctionDecl *FD, // Perform template argument deduction to determine whether we may be // specializing this template. // FIXME: It is somewhat wasteful to build - TemplateDeductionInfo Info(Context); + TemplateDeductionInfo Info(Context, FD->getLocation()); FunctionDecl *Specialization = 0; if (TemplateDeductionResult TDK = DeduceTemplateArguments(FunTmpl, ExplicitTemplateArgs, @@ -4614,7 +4614,7 @@ Sema::DeclResult Sema::ActOnExplicitInstantiation(Scope *S, if (!FunTmpl) continue; - TemplateDeductionInfo Info(Context); + TemplateDeductionInfo Info(Context, D.getIdentifierLoc()); FunctionDecl *Specialization = 0; if (TemplateDeductionResult TDK = DeduceTemplateArguments(FunTmpl, |