summaryrefslogtreecommitdiffstats
path: root/lib/AST/DeclTemplate.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-01-16 23:39:20 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-01-16 23:39:20 +0000
commite0b111b6671cfcc57f4766a539c54d8e584fac55 (patch)
tree81a11f486a802081eee8556ce208e5de3bb0576a /lib/AST/DeclTemplate.cpp
parent31d021721bc532b3ef71f806e89f9415b4516621 (diff)
Clean up variable template handling a bit, and correct the behavior of name
lookup when declaring a variable template specialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclTemplate.cpp')
-rw-r--r--lib/AST/DeclTemplate.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp
index bab29cb168..fc73e6f412 100644
--- a/lib/AST/DeclTemplate.cpp
+++ b/lib/AST/DeclTemplate.cpp
@@ -941,11 +941,8 @@ VarTemplateDecl *VarTemplateDecl::getDefinition() {
VarTemplateDecl *VarTemplateDecl::Create(ASTContext &C, DeclContext *DC,
SourceLocation L, DeclarationName Name,
TemplateParameterList *Params,
- NamedDecl *Decl,
- VarTemplateDecl *PrevDecl) {
- VarTemplateDecl *New = new (C, DC) VarTemplateDecl(DC, L, Name, Params, Decl);
- New->setPreviousDecl(PrevDecl);
- return New;
+ VarDecl *Decl) {
+ return new (C, DC) VarTemplateDecl(DC, L, Name, Params, Decl);
}
VarTemplateDecl *VarTemplateDecl::CreateDeserialized(ASTContext &C,