diff options
author | Richard Biener <rguenther@suse.de> | 2024-07-22 11:07:28 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:44 +0200 |
commit | 8ea8acf54495c11348e104ecc5a5353e33359aa6 (patch) | |
tree | c8caed35df188b351c4edb22d3b05953e11ff89a /gcc | |
parent | 0231dbacb563c2e9e0825d40952c10a529f746d6 (diff) | |
download | gcc-8ea8acf54495c11348e104ecc5a5353e33359aa6.zip gcc-8ea8acf54495c11348e104ecc5a5353e33359aa6.tar.gz gcc-8ea8acf54495c11348e104ecc5a5353e33359aa6.tar.bz2 |
Fix hash of WIDEN_*_EXPR
We're hashing operand 2 to the temporary hash.
* fold-const.cc (operand_compare::hash_operand): Fix hash
of WIDEN_*_EXPR.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fold-const.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.cc b/gcc/fold-const.cc index 83c32dd..8908e73 100644 --- a/gcc/fold-const.cc +++ b/gcc/fold-const.cc @@ -4123,7 +4123,7 @@ operand_compare::hash_operand (const_tree t, inchash::hash &hstate, hash_operand (TREE_OPERAND (t, 0), one, flags); hash_operand (TREE_OPERAND (t, 1), two, flags); hstate.add_commutative (one, two); - hash_operand (TREE_OPERAND (t, 2), two, flags); + hash_operand (TREE_OPERAND (t, 2), hstate, flags); return; } |