aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-05-13 13:17:25 -0700
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:03:16 -0300
commit91a27e7bdc44347160c73f59037422395b3e0d62 (patch)
treed4fdadacc681252288131da97e5e4d7590218a34 /gcc/tree-inline.c
parent52de2499edbbeda89e5f4c05c9ae84525dd00a56 (diff)
downloadgcc-91a27e7bdc44347160c73f59037422395b3e0d62.zip
gcc-91a27e7bdc44347160c73f59037422395b3e0d62.tar.gz
gcc-91a27e7bdc44347160c73f59037422395b3e0d62.tar.bz2
c++: Simplify typedef access checking
I discovered that the template typedef access check was rather more expensive than needed. The call of get_types_needed_access_check in the FOR_EACH_VEC_SAFE_ELT is the moral equivalent of 'for (size_t pos = 0; pos != strlen (string); pos++)'. Let's not do that. * pt.c (perform_typedefs_access_check): Cache expensively calculated object references. (check_auto_in_tmpl_args): Just assert we do not get unexpected nodes, rather than silently do nothing. (append_type_to_template_for_access): Likewise, cache expensie object reference.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions