]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pta: Fix comment of intra_create_variable_infos
authorFilip Kastl <fkastl@suse.cz>
Thu, 29 Jan 2026 15:01:33 +0000 (16:01 +0100)
committerFilip Kastl <fkastl@suse.cz>
Thu, 29 Jan 2026 15:03:52 +0000 (16:03 +0100)
The comment says that this function creates varinfos for *all*
variables in a function.  Meanwhile, it only creates varinfos for
parameters, the return value and the static chain.

Commiting as obvious.

gcc/ChangeLog:

* gimple-ssa-pta-constraints.cc (make_param_constraints): Adjust
comment: The function only creates varinfos for the parameters,
the return value and the static chain.

Signed-off-by: Filip Kastl <fkastl@suse.cz>
gcc/gimple-ssa-pta-constraints.cc

index 0262873ecece719b2789d130e57af7aaa025f939..900d256cb4ec4eae124066af01b2eecf28f2d47d 100644 (file)
@@ -3600,8 +3600,8 @@ make_param_constraints (varinfo_t vi)
     }
 }
 
-/* Create varinfo structures for all of the variables in the
-   function for intraprocedural mode.  */
+/* Create varinfo structures for parameters, return value and the static
+   chain of FN.  Intended for intraprocedural mode.  */
 
 static void
 intra_create_variable_infos (struct function *fn)