aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-manip.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-06-16 09:16:19 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-07-28 09:28:13 +0200
commit02cda19cc998905dc2319407d7e49a2d48ec9af2 (patch)
treec1f2b857def65cf585b2332fc8d24b0e612e2767 /gcc/tree-ssa-loop-manip.cc
parentcb3bed6018acae828f7a4828678c017c95f695f4 (diff)
downloadgcc-02cda19cc998905dc2319407d7e49a2d48ec9af2.zip
gcc-02cda19cc998905dc2319407d7e49a2d48ec9af2.tar.gz
gcc-02cda19cc998905dc2319407d7e49a2d48ec9af2.tar.bz2
ada: Allow calls to Number_Formals when no formals are present
It is much simpler and safer for the routine Number_Formals to accept subprogram entities that have no formals. gcc/ada/ * einfo-utils.adb (Number_Formals): Change types in body. * einfo-utils.ads (Number_Formals): Change type in spec. * einfo.ads (Number_Formals): Change type in comment. * sem_ch13.adb (Is_Property_Function): Fix style in a caller of Number_Formals that was likely to crash because of missing guards.
Diffstat (limited to 'gcc/tree-ssa-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions