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.
This commit is contained in:
Nathan Sidwell 2020-11-02 08:43:17 -08:00
parent f8a737930b
commit 9a2e765d77

View File

@ -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. */