[flang] Make subscript list argument a nullable pointer
authorpeter klausler <pklausler@nvidia.com>
Wed, 20 Oct 2021 23:01:52 +0000 (16:01 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 8 Nov 2021 19:53:13 +0000 (11:53 -0800)
commit6d44387e21a1b78eb7263f3610e7f11a42fecd24
treef00ac175fb6219830fb078994e811371a09c66b7
parent80f0bb5971e9a778e025d2bb91cbcb8b84a56d07
[flang] Make subscript list argument a nullable pointer

Component::CreatePointerDescriptor unconditionally expects a
vector of subscripts to be passed as an argument, but is called
from NAMELIST input with a null pointer.  Make that argument
a nullable pointer, move it to the end of the argument list,
and give it a default value of nullptr.

Differential Revision: https://reviews.llvm.org/D113312
flang/runtime/assign.cpp
flang/runtime/descriptor-io.h
flang/runtime/namelist.cpp
flang/runtime/type-info.cpp
flang/runtime/type-info.h