diff options
author | Richard Biener <rguenther@suse.de> | 2020-11-19 13:41:20 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-11-19 13:42:11 +0100 |
commit | d84ba819fe2f8bf49eddb7a3f42299a49d0206ea (patch) | |
tree | 17a62edb193870740780fc334956be8428f0a96c /gcc | |
parent | 717e22dcd48e6299b22a32b728c1d2cad08eb918 (diff) | |
download | gcc-d84ba819fe2f8bf49eddb7a3f42299a49d0206ea.zip gcc-d84ba819fe2f8bf49eddb7a3f42299a49d0206ea.tar.gz gcc-d84ba819fe2f8bf49eddb7a3f42299a49d0206ea.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 397805d..820b08d 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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 |