diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-01 17:53:10 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-01 17:53:10 +0000 |
commit | 2ffd96549d323e7a7c9fb265d374326e9bf96290 (patch) | |
tree | 2e193bbf2570e0fb1e40abe7595fb5daea642b10 /clang/lib/Sema/SemaTemplateInstantiate.cpp | |
parent | 0f20a5b338c403b93d359614746946c4ab5a4916 (diff) | |
download | bcm5719-llvm-2ffd96549d323e7a7c9fb265d374326e9bf96290.tar.gz bcm5719-llvm-2ffd96549d323e7a7c9fb265d374326e9bf96290.zip |
Implement proper substitution for OverloadedFunctionDecls, but substituting each of the functions in the overload set
llvm-svn: 80692
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiate.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp index b1cc328a2d4..c03f2e19aab 100644 --- a/clang/lib/Sema/SemaTemplateInstantiate.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp @@ -465,14 +465,6 @@ TemplateInstantiator::TransformDeclRefExpr(DeclRefExpr *E) { E->getSourceRange().getBegin())); } - if (OverloadedFunctionDecl *Ovl = dyn_cast<OverloadedFunctionDecl>(D)) { - // FIXME: instantiate each decl in the overload set - return SemaRef.Owned(new (SemaRef.Context) DeclRefExpr(Ovl, - SemaRef.Context.OverloadTy, - E->getLocation(), - false, false)); - } - NamedDecl *InstD = SemaRef.FindInstantiatedDecl(D); if (!InstD) return SemaRef.ExprError(); |