aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-08-29 03:16:09 +0000
committerJohn McCall <rjmccall@apple.com>2009-08-29 03:16:09 +0000
commitf181d8a44f5837213eeaee6d71f584b1ab2849cd (patch)
tree15fe88e4f2e1cf77deb0e325d36751286ecf5409 /lib/Sema/SemaTemplateInstantiateDecl.cpp
parent9a5bca34ca09d3a88c2ccb4f53b27cf99de4f182 (diff)
Ensure code generation for friend declarations in class templates.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 8370bd17ef..df4ebfaa93 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -498,6 +498,8 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D) {
Function->setObjectOfFriendDecl(WasDeclared);
if (!Owner->isDependentContext())
DC->makeDeclVisibleInContext(Function);
+
+ Function->setInstantiationOfMemberFunction(D);
}
if (InitFunctionInstantiation(Function, D))