[flang][hlfir] Fixed actual argument type for passing to poly dummy.
authorSlava Zakharin <szakharin@nvidia.com>
Fri, 28 Apr 2023 00:45:06 +0000 (17:45 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Fri, 28 Apr 2023 15:51:11 +0000 (08:51 -0700)
commit6db45cc4bc279370b93fc6ef58d0cb87dd7f552f
tree1396c8aad1aa23e64fc885945bfdcf4c91514ec3
parent797594a0438f2c6188e9bb3a382f041d3addcd0d
[flang][hlfir] Fixed actual argument type for passing to poly dummy.

The `none` type cannot be used for creating AssociateOp for the actual
argument. I think it should be always okay to compute the storage
data type based on the actual argument expression.
flang/lib/Lower/ConvertCall.cpp
flang/test/HLFIR/call_with_poly_dummy.f90 [new file with mode: 0644]