From: Nathan Sidwell Date: Mon, 2 Nov 2020 16:43:17 +0000 (-0800) Subject: core: id_equal should forward X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a2e765d7773185efa109c12839ab6c8a18a1346;p=gcc.git core: id_equal should forward I noticed the two id_equal functions directly called strcmp. This changes one of them to call the other with args swapped. gcc/ * tree.h (id_equal): Call the symetric predicate with swapped arguments. --- diff --git a/gcc/tree.h b/gcc/tree.h index 04e564c9798..caf6287f909 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -3859,7 +3859,7 @@ id_equal (const_tree id, const char *str) inline bool id_equal (const char *str, const_tree id) { - return !strcmp (str, IDENTIFIER_POINTER (id)); + return id_equal (id, str); } /* Return the number of elements in the VECTOR_TYPE given by NODE. */