]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: redundant hashing in register_specialization
authorPatrick Palka <ppalka@redhat.com>
Tue, 22 Oct 2024 12:01:16 +0000 (08:01 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 22 Oct 2024 12:01:16 +0000 (08:01 -0400)
commitae614b8a3d7866764bfea6f30605f90268db572b
tree42a8da1baf1cf2804a0ee6697918402a614d6f5d
parent4e80432c52a18b92899244e8ce3c243f560766a6
c++: redundant hashing in register_specialization

After r15-4050-g5dad738c1dd164 register_specialization needs to set
elt.hash to the (maybe) precomputed hash so that the lookup uses it
rather than redundantly computing it from scratch.

gcc/cp/ChangeLog:

* pt.cc (register_specialization): Set elt.hash.

Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/cp/pt.cc