[flang] Fix pointer association with remap on polymorphic entities
authorValentin Clement <clementval@gmail.com>
Mon, 5 Dec 2022 17:28:13 +0000 (18:28 +0100)
committerValentin Clement <clementval@gmail.com>
Mon, 5 Dec 2022 17:29:06 +0000 (18:29 +0100)
commit491b6a9ccb05e5e6784ce50718570d204378c75e
treefd45809673e98fad3b8461950baddb0e249fbb9c
parent87dfec9dc8991a9a14df3ce3443da296354b5d57
[flang] Fix pointer association with remap on polymorphic entities

Runtime is expecting a 1d array. This patch fixes the generation
of the array holding the bounds to be passed to the runtime function call.

Reviewed By: jeanPerier, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D139324
flang/lib/Lower/Bridge.cpp
flang/test/Lower/polymorphic.f90