diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-02-11 22:59:36 +1100 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-03-07 21:13:29 +1100 |
commit | 95e23e74ccb1fe7decf916c12e74486b692372cd (patch) | |
tree | 25e165e9632705a5f90c3065fceaafe24e64ae2d /gcc/tree-vectorizer.h | |
parent | e1c49f413c8c892a61612b3b89de0607ff7ba893 (diff) | |
download | gcc-95e23e74ccb1fe7decf916c12e74486b692372cd.zip gcc-95e23e74ccb1fe7decf916c12e74486b692372cd.tar.gz gcc-95e23e74ccb1fe7decf916c12e74486b692372cd.tar.bz2 |
c++: Handle TU_LOCAL_ENTITY in tsubst_expr and potential_constant_expression
This cleans up the TU_LOCAL_ENTITY handling to avoid unnecessary
tree walks and make the logic more robust.
gcc/cp/ChangeLog:
* constexpr.cc (potential_constant_expression_1): Handle
TU_LOCAL_ENTITY.
* pt.cc (expr_contains_tu_local_entity): Remove.
(function_contains_tu_local_entity): Remove.
(dependent_operand_p): Remove special handling for
TU_LOCAL_ENTITY.
(tsubst_expr): Handle TU_LOCAL_ENTITY when tsubsting OVERLOADs;
remove now-unnecessary extra handling.
(type_dependent_expression_p): Handle TU_LOCAL_ENTITY.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions