pt.c (hash_tmpl_and_args): Use iterative_hash_object on template uid.

* pt.c (hash_tmpl_and_args): Use iterative_hash_object on template
	uid.

From-SVN: r229626
This commit is contained in:
Jason Merrill 2015-10-31 12:19:44 -04:00 committed by Jason Merrill
parent dfded2f6b4
commit 79d9b2dea2
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2015-10-31 Jason Merrill <jason@redhat.com>
* pt.c (hash_tmpl_and_args): Use iterative_hash_object on template
uid.
* parser.c (synthesize_implicit_template_parm)
(finish_fully_implicit_template): Make static.

View File

@ -1682,7 +1682,7 @@ spec_hasher::equal (spec_entry *e1, spec_entry *e2)
static hashval_t
hash_tmpl_and_args (tree tmpl, tree args)
{
hashval_t val = DECL_UID (tmpl);
hashval_t val = iterative_hash_object (DECL_UID (tmpl), 0);
return iterative_hash_template_arg (args, val);
}