On Wed, Sep 20, 2017 at 3:52 PM, David Malcolm <dmalc...@redhat.com> wrote: > + /* If we have a method, then DECL_ARGUMENTS begins with "this"; > + increment ARGNUM to skip it. */ > + if (TREE_CODE (TREE_TYPE (fndecl)) == METHOD_TYPE) > + argnum++; > + > + /* Locate param by index within DECL_ARGUMENTS (fndecl). */ > + for (i = 0, param = DECL_ARGUMENTS (fndecl);
One more nit: You can use param = FUNCTION_FIRST_USER_PARM (fndecl) instead of messing with argnum. Jason