summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-29 16:15:53 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-29 16:15:53 +0000
commitab60c7f60b66144bc2b5a5d6e15d96c8a7697c2b (patch)
treeca9969ad5c2df92b5c12b2deaf9bbe2fe0523ef1 /clang/lib/Sema/SemaTemplate.cpp
parentb55d8e914ad5570218fc6d97eda388cb2cc8b207 (diff)
downloadbcm5719-llvm-ab60c7f60b66144bc2b5a5d6e15d96c8a7697c2b.tar.gz
bcm5719-llvm-ab60c7f60b66144bc2b5a5d6e15d96c8a7697c2b.zip
Remove an obsolete kludge based on the previous, completely broken handling of function templates
llvm-svn: 77464
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index f27d551d102..55c43c2d0aa 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -69,13 +69,8 @@ TemplateNameKind Sema::isTemplateName(const IdentifierInfo &II, Scope *S,
// FIXME: What follows is a slightly less gross hack than what used to
// follow.
- if (FunctionDecl *FD = dyn_cast<FunctionDecl>(IIDecl)) {
- if (FD->getDescribedFunctionTemplate()) {
- TemplateResult = TemplateTy::make(FD);
- return TNK_Function_template;
- }
- } else if (OverloadedFunctionDecl *Ovl
- = dyn_cast<OverloadedFunctionDecl>(IIDecl)) {
+ if (OverloadedFunctionDecl *Ovl
+ = dyn_cast<OverloadedFunctionDecl>(IIDecl)) {
for (OverloadedFunctionDecl::function_iterator F = Ovl->function_begin(),
FEnd = Ovl->function_end();
F != FEnd; ++F) {
OpenPOWER on IntegriCloud