Fix bootstrap
This fixes a typo in the TREE_CODE compare which should compare against TYPE_DECL, not TYPE_NAME. 2020-11-19 Richard Biener <rguenther@suse.de> * fold-const.c (operand_compare::hash_operand): Fix typo.
This commit is contained in:
parent
717e22dcd4
commit
d84ba819fe
1 changed files with 1 additions and 1 deletions
|
@ -3871,7 +3871,7 @@ operand_compare::hash_operand (const_tree t, inchash::hash &hstate,
|
|||
c = TYPE_NAME (TYPE_MAIN_VARIANT (c));
|
||||
/* We compute mangled names only when free_lang_data is run.
|
||||
In that case we can hash precisely. */
|
||||
if (TREE_CODE (c) == TYPE_NAME
|
||||
if (TREE_CODE (c) == TYPE_DECL
|
||||
&& DECL_ASSEMBLER_NAME_SET_P (c))
|
||||
hstate.add_object
|
||||
(IDENTIFIER_HASH_VALUE
|
||||
|
|
Loading…
Add table
Reference in a new issue