HomePhabricator

[DebugInfo][flang] DISubrange support for fortran assumed size array

Authored by alok on Sep 9 2020, 11:23 PM.

Description

[DebugInfo][flang] DISubrange support for fortran assumed size array

This is needed to support assumed size array of fortran which can have missing upperBound/count
, contrary to current DISubrange support.
Example:
subroutine sub (array1, array2)

integer :: array1 (*)
integer :: array2 (4:9, 10:*)

array1(7:8) = 9
array2(5, 10) = 10

end subroutine
Now the validation check is relaxed for fortran.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D87500