summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2016-03-01 02:09:25 +0000
committerJohn McCall <rjmccall@apple.com>2016-03-01 02:09:25 +0000
commitc8e321d4bc6862f4939ed5200b5d4cbb9fb41a90 (patch)
tree8bdccc67a7c4cfce0c74bf0dee7e8ff064b9cbac /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parent5d7cf778e491db4b5fff2bebfec0a1ed24362d43 (diff)
downloadbcm5719-llvm-c8e321d4bc6862f4939ed5200b5d4cbb9fb41a90.tar.gz
bcm5719-llvm-c8e321d4bc6862f4939ed5200b5d4cbb9fb41a90.zip
Fix the template instantiation of ExtParameterInfos; tests to follow.
llvm-svn: 262289
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 829d51ee968..fdf1c73bfc6 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -3124,9 +3124,10 @@ TemplateDeclInstantiator::SubstFunctionType(FunctionDecl *D,
// In this case, we'll just go instantiate the ParmVarDecls that we
// synthesized in the method declaration.
SmallVector<QualType, 4> ParamTypes;
+ Sema::ExtParameterInfoBuilder ExtParamInfos;
if (SemaRef.SubstParmTypes(D->getLocation(), D->param_begin(),
- D->getNumParams(), TemplateArgs, ParamTypes,
- &Params))
+ D->getNumParams(), nullptr, TemplateArgs,
+ ParamTypes, &Params, ExtParamInfos))
return nullptr;
}
OpenPOWER on IntegriCloud