[flang] Set the addendum when establishing pointer section in descriptor
authorJean Perier <jperier@nvidia.com>
Mon, 8 Nov 2021 10:04:20 +0000 (11:04 +0100)
committerJean Perier <jperier@nvidia.com>
Mon, 8 Nov 2021 10:05:31 +0000 (11:05 +0100)
commit437543068935b718d4eac5702e04e8438820b4d2
tree44b6a691a046dfbbd871c9097a8b098fc2f09876
parentc42bb30b9e2950efd1d1bd2df9ab8e5b098e65c7
[flang] Set the addendum when establishing pointer section in descriptor

If the source has an addendum, the descriptor that is being established
to describe a section over the source needs to copy the addendum so that
derived type information is correctly set in the descriptor being
established.

This allows namelist IO with derived type to work correctly.

Differential Revision: https://reviews.llvm.org/D113258
flang/runtime/descriptor.cpp