]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa: Fix create_version_clone_with_body declaration and comment
authorMartin Jambor <mjambor@suse.cz>
Tue, 6 May 2025 15:28:43 +0000 (17:28 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 6 May 2025 15:32:25 +0000 (17:32 +0200)
commit1eaee43dc0c6292ce865b460d52474ca14ea1d71
treea3694cbc471cbaf2e249d84703627ed8743d6e57
parentfb5829a01651d427a63a12c44ecc8baa47dbfc83
ipa: Fix create_version_clone_with_body declaration and comment

I noticed that the name of the fifth parameter of
cgraph_node::create_version_clone_with_body is different in the class
definition in cgraph.h and in the actual member function definition in
cgraphclones.cc.  The former (clone_name) is misleading and so this
patch changes it to the latter (suffix) which is also used in related
functions.

The patch also updates the function comment in both places because it
clearly became out of date.

gcc/ChangeLog:

2025-04-25  Martin Jambor  <mjambor@suse.cz>

* cgraph.h (cgraph_node::create_version_clone_with_body): Fix function
comment.  Change the name of clone_name to suffix, in line with the
function definition.
* cgraphclones.cc (cgraph_node::create_version_clone_with_body): Fix
function comment.
gcc/cgraph.h
gcc/cgraphclones.cc