diff options
author | Alexis Hunt <alercah@gmail.com> | 2011-05-23 23:56:01 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2011-05-23 23:56:01 +0000 |
commit | 6a31f2c7c970443ae322b28eee0595775183482c (patch) | |
tree | b5963b51ff06e2978632413a5d2c7eb7333f3f73 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 0084527b82d2987e33197b36263ea6da5b13ff08 (diff) | |
download | bcm5719-llvm-6a31f2c7c970443ae322b28eee0595775183482c.tar.gz bcm5719-llvm-6a31f2c7c970443ae322b28eee0595775183482c.zip |
Delete the extraneous return statement that was causing my earlier
issues and also add a test.
We should now handle defaulted members of templates properly. No
comment as to whether or not this also holds for templated functions,
but defaulting those is kind of insane.
llvm-svn: 131938
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 2481bd004dc..701493cf988 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -2439,8 +2439,6 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation, ActOnFinishFunctionBody(Function, 0, /*IsInstantiation=*/true); SetDeclDefaulted(Function, PatternDecl->getLocation()); - - return; } else { // If this is a constructor, instantiate the member initializers. if (const CXXConstructorDecl *Ctor = |