diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-11 01:19:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-11 01:19:42 +0000 |
commit | 838db383b69b9fb55f55c8e9546477df198a4faa (patch) | |
tree | 1ea0c2ba1825b7d5b194be095db1d8d793681263 /lib/Sema/SemaTemplate.cpp | |
parent | e9ff443040cb571ae2c5c2626c4dc9a9a812d84a (diff) |
Eliminate a bunch of unnecessary ASTContexts from members functions of
Decl subclasses. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 83bc6f39b8..63cf4aef37 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -3941,8 +3941,7 @@ Sema::CheckFunctionTemplateSpecialization(FunctionDecl *FD, // Turn the given function declaration into a function template // specialization, with the template arguments from the previous // specialization. - FD->setFunctionTemplateSpecialization(Context, - Specialization->getPrimaryTemplate(), + FD->setFunctionTemplateSpecialization(Specialization->getPrimaryTemplate(), new (Context) TemplateArgumentList( *Specialization->getTemplateSpecializationArgs()), /*InsertPos=*/0, |