From 2f212b3a72b1dbc89346830fa2bcf861a8d2f785 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 11 Sep 2009 21:02:39 +0000 Subject: Alter Action's friend interface to prepare for templated friend declarations and to stop making promises we can't currently keep. llvm-svn: 81571 --- clang/lib/Parse/ParseCXXInlineMethods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp') diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp index 82b7da9f68e..c34653ee425 100644 --- a/clang/lib/Parse/ParseCXXInlineMethods.cpp +++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp @@ -34,7 +34,7 @@ Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, Declarator &D, DeclPtrTy FnD; if (D.getDeclSpec().isFriendSpecified()) // FIXME: Friend templates - FnD = Actions.ActOnFriendDecl(CurScope, &D, /*IsDefinition*/ true); + FnD = Actions.ActOnFriendFunctionDecl(CurScope, D, true, move(TemplateParams)); else // FIXME: pass template information through FnD = Actions.ActOnCXXMemberDeclarator(CurScope, AS, D, move(TemplateParams), 0, 0); -- cgit v1.2.3