Change set_ptr_nonull to set_ptr_nonnull in comments

Message ID 20211016193418.372265-1-hjl.tools@gmail.com
State Committed
Commit 7407f704b3cce83f9e084a152524e8de208bafe0
Headers
Series Change set_ptr_nonull to set_ptr_nonnull in comments |

Commit Message

H.J. Lu Oct. 16, 2021, 7:34 p.m. UTC
  * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
	set_ptr_nonull to set_ptr_nonnull in comments.
---
 gcc/value-query.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Richard Biener Oct. 18, 2021, 7 a.m. UTC | #1
On Sat, Oct 16, 2021 at 9:35 PM H.J. Lu via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
>         * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
>         set_ptr_nonull to set_ptr_nonnull in comments.

OK (but it's also obvious)

> ---
>  gcc/value-query.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/value-query.cc b/gcc/value-query.cc
> index ab133aab114..17ebd86ce5f 100644
> --- a/gcc/value-query.cc
> +++ b/gcc/value-query.cc
> @@ -296,7 +296,7 @@ get_ssa_name_ptr_info_nonnull (const_tree name)
>      return false;
>    /* TODO Now pt->null is conservatively set to true in PTA
>       analysis. vrp is the only pass (including ipa-vrp)
> -     that clears pt.null via set_ptr_nonull when it knows
> +     that clears pt.null via set_ptr_nonnull when it knows
>       for sure. PTA will preserves the pt.null value set by VRP.
>
>       When PTA analysis is improved, pt.anything, pt.nonlocal
> --
> 2.32.0
>
  

Patch

diff --git a/gcc/value-query.cc b/gcc/value-query.cc
index ab133aab114..17ebd86ce5f 100644
--- a/gcc/value-query.cc
+++ b/gcc/value-query.cc
@@ -296,7 +296,7 @@  get_ssa_name_ptr_info_nonnull (const_tree name)
     return false;
   /* TODO Now pt->null is conservatively set to true in PTA
      analysis. vrp is the only pass (including ipa-vrp)
-     that clears pt.null via set_ptr_nonull when it knows
+     that clears pt.null via set_ptr_nonnull when it knows
      for sure. PTA will preserves the pt.null value set by VRP.
 
      When PTA analysis is improved, pt.anything, pt.nonlocal