commit | f181d8a44f5837213eeaee6d71f584b1ab2849cd | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Sat Aug 29 03:16:09 2009 +0000 |
committer | John McCall <rjmccall@apple.com> | Sat Aug 29 03:16:09 2009 +0000 |
tree | 15fe88e4f2e1cf77deb0e325d36751286ecf5409 | |
parent | 9a5bca34ca09d3a88c2ccb4f53b27cf99de4f182 [diff] [blame] |
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
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 8370bd1..df4ebfa 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -498,6 +498,8 @@ Function->setObjectOfFriendDecl(WasDeclared); if (!Owner->isDependentContext()) DC->makeDeclVisibleInContext(Function); + + Function->setInstantiationOfMemberFunction(D); } if (InitFunctionInstantiation(Function, D))