[committed] fix a couple of typos in a comment

Message ID ebf02e64-e66d-e190-b31d-c5cba102efad@gmail.com
State New
Headers show
Series
  • [committed] fix a couple of typos in a comment
Related show

Commit Message

Jason Merrill via Gcc-patches July 21, 2021, 8:37 p.m.
My eye was drawn to the typos below so I fixed them.

Martin


@@ -3755,8 +3755,8 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse, 
bool tbaa_p,
     If function entry is reached, FUNCTION_ENTRY_REACHED is set to true.
     The pointer may be NULL and then we do not track this information.

-   At PHI nodes walk_aliased_vdefs forks into one walk for reach
-   PHI argument (but only one walk continues on merge points), the
+   At PHI nodes walk_aliased_vdefs forks into one walk for each
+   PHI argument (but only one walk continues at merge points), the
     return value is true if any of the walks was successful.

     The function returns the number of statements walked or -1 if

Patch

diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 742a95a549e..cbd51ac4d7c 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -3745,7 +3745,7 @@  walk_non_aliased_vuses (ao_ref *ref, tree vuse, 
bool tbaa_p,
  }


-/* Based on the memory reference REF call WALKER for each vdef which
+/* Based on the memory reference REF call WALKER for each vdef whose
     defining statement may clobber REF, starting with VDEF.  If REF
     is NULL_TREE, each defining statement is visited.