[flang] Convert assertion to a TODO
authorValentin Clement <clementval@gmail.com>
Thu, 30 Jun 2022 13:45:39 +0000 (15:45 +0200)
committerValentin Clement <clementval@gmail.com>
Thu, 30 Jun 2022 13:46:24 +0000 (15:46 +0200)
commit540a76f07483bc202f48c01477e6efc87c79f7a5
treeea181e0f5253c5736b0a2d62af0c9c6bb55f5235
parent7903b35a71169c833f168cccdeb16a6ced55b91c
[flang] Convert assertion to a TODO

The original assertion is not necessarily correct since the shape
argument may involve a slice of an array (an expression) and not a whole
vector with constant length. In the presence of a slice operation, the
size must be computed (left as a TODO for now).

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: jeanPerier

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
flang/lib/Lower/IntrinsicCall.cpp