summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2010-06-09 09:26:05 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2010-06-09 09:26:05 +0000
commit656e300f0301db72ba94ec0eb33105937a749c0e (patch)
tree43f06cd89012654e52eca44012f43723ad141a23 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parentb3c7ff50a054c1d01b76ba88c5f080508fe8c615 (diff)
downloadbcm5719-llvm-656e300f0301db72ba94ec0eb33105937a749c0e.tar.gz
bcm5719-llvm-656e300f0301db72ba94ec0eb33105937a749c0e.zip
Added inherited info to template and non-type arguments of templates.
llvm-svn: 105716
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 0af3ed9095e..efd503f1e9f 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -1495,7 +1495,7 @@ Decl *TemplateDeclInstantiator::VisitNonTypeTemplateParmDecl(
if (Invalid)
Param->setInvalidDecl();
- Param->setDefaultArgument(D->getDefaultArgument());
+ Param->setDefaultArgument(D->getDefaultArgument(), false);
// Introduce this template parameter's instantiation into the instantiation
// scope.
@@ -1523,7 +1523,7 @@ TemplateDeclInstantiator::VisitTemplateTemplateParmDecl(
= TemplateTemplateParmDecl::Create(SemaRef.Context, Owner, D->getLocation(),
D->getDepth() - 1, D->getPosition(),
D->getIdentifier(), InstParams);
- Param->setDefaultArgument(D->getDefaultArgument());
+ Param->setDefaultArgument(D->getDefaultArgument(), false);
// Introduce this template parameter's instantiation into the instantiation
// scope.
OpenPOWER on IntegriCloud