diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-05-19 09:58:20 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-05-19 09:58:20 -0400 |
commit | c5709fc87131bea0013cb67cf80bdea6e238c918 (patch) | |
tree | e791a9ac038cb6cba6de2e837a6cd25f5e81cb61 /gcc/fortran/resolve.cc | |
parent | ef8926d23a458560b8e9be1a76cf29ddcb87ec2a (diff) | |
download | gcc-c5709fc87131bea0013cb67cf80bdea6e238c918.zip gcc-c5709fc87131bea0013cb67cf80bdea6e238c918.tar.gz gcc-c5709fc87131bea0013cb67cf80bdea6e238c918.tar.bz2 |
c++: simplify norm_cache manipulation
We can avoid performing two norm_cache lookups during normalization of a
concept-id by allocating and inserting a norm_entry* before rather than
after the fact, which is simpler and cheaper.
gcc/cp/ChangeLog:
* constraint.cc (normalize_concept_check): Avoid having to do
two norm_cache lookups. Remove unnecessary early exit for an
ill-formed concept definition.
Diffstat (limited to 'gcc/fortran/resolve.cc')
0 files changed, 0 insertions, 0 deletions