mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-24 04:10:29 +08:00
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:
parent
f8a737930b
commit
9a2e765d77
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user