On Tue, Feb 04, 2020 at 09:00:37AM -0500, David Malcolm wrote:
> gcc/analyzer/ChangeLog:
>       PR analyzer/93543
>       * engine.cc (pod_hash_traits<function_call_string>::mark_empty):
>       Eliminate reinterpret_cast.
>       (pod_hash_traits<function_call_string>::is_empty): Likewise.

This is ok for trunk.

>  gcc/analyzer/engine.cc | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc
> index 90f7067dec1..81b8a76c5eb 100644
> --- a/gcc/analyzer/engine.cc
> +++ b/gcc/analyzer/engine.cc
> @@ -2962,7 +2962,7 @@ template <>
>  inline void
>  pod_hash_traits<function_call_string>::mark_empty (value_type &v)
>  {
> -  v.m_fun = reinterpret_cast<function *> (NULL);
> +  v.m_fun = NULL;
>  }
>  template <>
>  inline bool
> @@ -2974,7 +2974,7 @@ template <>
>  inline bool
>  pod_hash_traits<function_call_string>::is_empty (value_type v)
>  {
> -  return v.m_fun == reinterpret_cast<function *> (NULL);
> +  return v.m_fun == NULL;
>  }
>  
>  namespace ana {
> -- 
> 2.21.0

        Jakub

Reply via email to