diff mbox series

Replace another missed iterative_hash_object

Message ID 20241002132907.8CFD0385B50B@sourceware.org
State New
Headers show
Series Replace another missed iterative_hash_object | expand

Commit Message

Richard Biener Oct. 2, 2024, 1:28 p.m. UTC
I missed one that's actually hit quite a lot, hashing of the canonical
type TYPE_HASH.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed as obvious
after the previous approval.

Richard.

	* pt.cc (iterative_hash_template_arg): Use iterative_hash_hashval_t
	to hash TYPE_HASH.
---
 gcc/cp/pt.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc
index 04f0a1d5fff..20affcd65a2 100644
--- a/gcc/cp/pt.cc
+++ b/gcc/cp/pt.cc
@@ -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);