diff options
author | Bob Duff <duff@adacore.com> | 2021-09-06 13:01:04 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-25 15:07:21 +0000 |
commit | 93c63f32a2cb49679143f4b893343fcba6f59351 (patch) | |
tree | 400595ed159056d7d9571d8844462873eb871f7b /gcc/tree-vrp.c | |
parent | a3a6a0a50af2dd257682289703b721ba1b7863ca (diff) | |
download | gcc-93c63f32a2cb49679143f4b893343fcba6f59351.zip gcc-93c63f32a2cb49679143f4b893343fcba6f59351.tar.gz gcc-93c63f32a2cb49679143f4b893343fcba6f59351.tar.bz2 |
[Ada] Make Declaration_Node return nondeclarations in fewer cases
gcc/ada/
* einfo-utils.adb (Declaration_Node): Avoid returning the
following node kinds: N_Assignment_Statement, N_Integer_Literal,
N_Procedure_Call_Statement, N_Subtype_Indication, and
N_Type_Conversion. Assert that the result is in N_Is_Decl or
empty.
* gen_il-gen-gen_nodes.adb (N_Is_Decl): Modify to match the
things that Declaration_Node can return.
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions