pt.c (reregister_specialization): Use htab_find instead of htab_find_slot with INSERT.
authorJakub Jelinek <jakub@redhat.com>
Sun, 9 Oct 2011 09:35:23 +0000 (11:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 9 Oct 2011 09:35:23 +0000 (11:35 +0200)
commit68e291ec19d388cf2c79ea01a826cfb3ca27b5a5
treeb0e08f6eaaa605da771f30c5d5b71d1ed41d500c
parent367f06ae31199b827781fff1027c44e37c7392ba
pt.c (reregister_specialization): Use htab_find instead of htab_find_slot with INSERT.

* pt.c (reregister_specialization): Use htab_find instead of
htab_find_slot with INSERT.
(maybe_process_partial_specialization, lookup_template_class_1): Change
slot variable type to void ** to avoid aliasing problems.
(register_specialization): Likewise.  Use slot != NULL instead of
more expensive !optimize_specialization_lookup_p (tmpl) test.

Co-Authored-By: Diego Novillo <dnovillo@google.com>
From-SVN: r179719
gcc/cp/ChangeLog
gcc/cp/pt.c