diff options
author | Jason Merrill <jason@redhat.com> | 2023-11-01 23:21:34 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-11-02 16:01:39 -0400 |
commit | 341c633bd8ce4e4a82038873606c6b32e94ae339 (patch) | |
tree | cc0b57149ce3a51c192f5c609f99ab4f5b409884 /gcc/fortran/parse.cc | |
parent | ae07265381d934ee97fb1ce8915731158c91babc (diff) | |
download | gcc-341c633bd8ce4e4a82038873606c6b32e94ae339.zip gcc-341c633bd8ce4e4a82038873606c6b32e94ae339.tar.gz gcc-341c633bd8ce4e4a82038873606c6b32e94ae339.tar.bz2 |
c++: use hash_set in nrv_data
I noticed we were using a hash_table directly here instead of the simpler
hash_set interface. Also, let's check for the variable itself and repeats
earlier, since they should happen more often than any of the other cases.
gcc/cp/ChangeLog:
* semantics.cc (nrv_data): Change visited to hash_set.
(finalize_nrv_r): Reorganize.
Diffstat (limited to 'gcc/fortran/parse.cc')
0 files changed, 0 insertions, 0 deletions