]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Replace another missed iterative_hash_object
authorRichard Biener <rguenther@suse.de>
Wed, 2 Oct 2024 12:18:05 +0000 (14:18 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 2 Oct 2024 13:29:10 +0000 (15:29 +0200)
I missed one that's actually hit quite a lot, hashing of the canonical
type TYPE_HASH.

gcc/cp/
* pt.cc (iterative_hash_template_arg): Use iterative_hash_hashval_t
to hash TYPE_HASH.

gcc/cp/pt.cc

index 04f0a1d5fff72a57bfe633e4b3dd523dce56f5cb..20affcd65a2765e1a5ab599f1f9d3f43a0a59bcc 100644 (file)
@@ -1936,7 +1936,7 @@ iterative_hash_template_arg (tree arg, hashval_t val)
 
        default:
          if (tree canonical = TYPE_CANONICAL (arg))
-           val = iterative_hash_object (TYPE_HASH (canonical), val);
+           val = iterative_hash_hashval_t (TYPE_HASH (canonical), val);
          else if (tree ti = TYPE_TEMPLATE_INFO (arg))
            {
              val = iterative_hash_template_arg (TI_TEMPLATE (ti), val);