From: Francois Pichet Date: Thu, 8 Dec 2011 09:11:52 +0000 (+0000) Subject: Remove unused parameter from the LateParsedTemplatedFunction constructor. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1fca502e7f1349e9b4520a4ca9a02413bcf2b14;p=clang Remove unused parameter from the LateParsedTemplatedFunction constructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146145 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 8e283d1c02..0ebf9c3a70 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -1125,7 +1125,7 @@ private: /// \brief Contains a late templated function. /// Will be parsed at the end of the translation unit. struct LateParsedTemplatedFunction { - explicit LateParsedTemplatedFunction(Parser* P, Decl *MD) + explicit LateParsedTemplatedFunction(Decl *MD) : D(MD) {} CachedTokens Toks; diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp index 66f26f86f4..d5b240ab79 100644 --- a/lib/Parse/ParseCXXInlineMethods.cpp +++ b/lib/Parse/ParseCXXInlineMethods.cpp @@ -113,8 +113,7 @@ Decl *Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, !Actions.IsInsideALocalClassWithinATemplateFunction())) { if (FnD) { - LateParsedTemplatedFunction *LPT = - new LateParsedTemplatedFunction(this, FnD); + LateParsedTemplatedFunction *LPT = new LateParsedTemplatedFunction(FnD); FunctionDecl *FD = 0; if (FunctionTemplateDecl *FunTmpl = dyn_cast(FnD)) diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 112d7a2d12..95ce065ff7 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -885,7 +885,7 @@ Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D, D.getMutableDeclSpec().abort(); if (DP) { - LateParsedTemplatedFunction *LPT = new LateParsedTemplatedFunction(this, DP); + LateParsedTemplatedFunction *LPT = new LateParsedTemplatedFunction(DP); FunctionDecl *FnD = 0; if (FunctionTemplateDecl *FunTmpl = dyn_cast(DP))