summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-05-27 21:29:22 +0000
committerAlexander Kornienko <alexfh@google.com>2014-05-27 21:29:22 +0000
commit89e902158bb47383c3a46139b3c1438cb2b9895b (patch)
tree308e3f85a39dd3454a66900fc2402613ae9fb5f7 /lib/Sema/SemaTemplateInstantiateDecl.cpp
parentf28d22a72b9613518dbd92815d0c9a37177f2e5a (diff)
Retain isImplicit flag for local variable declarations when instantiating
templates. Reviewers: rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3924 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 2a0f56baa7..60ec5bbad9 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -423,6 +423,8 @@ Decl *TemplateDeclInstantiator::VisitVarDecl(VarDecl *D,
Var->setNRVOVariable(true);
}
+ Var->setImplicit(D->isImplicit());
+
return Var;
}