Fortran: Use build_debug_expr_decl to create DEBUG_DECL_EXPRs
authorMartin Jambor <mjambor@suse.cz>
Thu, 11 Nov 2021 16:17:30 +0000 (17:17 +0100)
committerMartin Jambor <mjambor@suse.cz>
Fri, 12 Nov 2021 14:46:05 +0000 (15:46 +0100)
commit847f587dc478654b5139ef5bb2e228024143c512
tree412fd6fbd7a44d3d98c7caafda0b2a9a8471b06a
parent6849c71c065e599282c98f3678f22ac52d97a755
Fortran: Use build_debug_expr_decl to create DEBUG_DECL_EXPRs

This patch converts one more open coded construction of a
DEBUG_EXPR_DECL to a call of build_debug_expr_decl that I missed in my
previous patch befause it happens to be in the Fortran front-end.

gcc/fortran/ChangeLog:

2021-11-11  Martin Jambor  <mjambor@suse.cz>

* trans-types.c (gfc_get_array_descr_info): Use build_debug_expr_decl
instead of building DEBUG_EXPR_DECL manually.
gcc/fortran/trans-types.c