aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorSean Hunt <scshunt@csclub.uwaterloo.ca>2011-05-23 23:56:01 +0000
committerSean Hunt <scshunt@csclub.uwaterloo.ca>2011-05-23 23:56:01 +0000
commit2545ce1c76236c2277b90dbd4f7d01ef13fe0823 (patch)
tree29832cd985bec4a1f6356e9a5c62aac078b7202d /lib/Sema/SemaTemplateInstantiateDecl.cpp
parent5f0bcc4c3f4a75375a3571e71bffebf603f4ca67 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 2481bd004d..701493cf98 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/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 =