summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-11 01:19:42 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-11 01:19:42 +0000
commitd505812422b541a292dc9f7fc9df85780fb1b0c0 (patch)
tree9d4b85331ae384fbc8a4474791c0692ba8782830 /clang/lib/Sema/SemaTemplate.cpp
parent7c2005aa6d1caa99e06146dc61970738d437d6fc (diff)
downloadbcm5719-llvm-d505812422b541a292dc9f7fc9df85780fb1b0c0.tar.gz
bcm5719-llvm-d505812422b541a292dc9f7fc9df85780fb1b0c0.zip
Eliminate a bunch of unnecessary ASTContexts from members functions of
Decl subclasses. No functionality change. llvm-svn: 95841
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 83bc6f39b85..63cf4aef375 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud