diff options
author | Peter Klausler <pklausler@nvidia.com> | 2022-04-01 16:01:04 -0700 |
---|---|---|
committer | Peter Klausler <pklausler@nvidia.com> | 2022-04-14 12:07:48 -0700 |
commit | d054959786eeec6311218efd857c0cca658b6f77 (patch) | |
tree | 1ce08eb36c89738c1a53cd6e64a7e28ba9ad64be /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 5955a0f9375a8c0b134eeb4a8de5155dcce7c94f (diff) | |
download | llvm-d054959786eeec6311218efd857c0cca658b6f77.zip llvm-d054959786eeec6311218efd857c0cca658b6f77.tar.gz llvm-d054959786eeec6311218efd857c0cca658b6f77.tar.bz2 |
[flang] Fix shape analysis of RESHAPE result
Shape analysis of RESHAPE(..., SHAPE=s) should of course return
the SHAPE= actual argument when it is constant; but when it is
not, its length is still known, and thus so is the rank of the
result of RESHAPE(), and shape analysis should at least return
a shape vector of the right length rather than a result that
makes the result appear to be a scalar, which can lead to some
bogus error messages.
Also, while here: rename a private GetShapeHelper::AsShape()
routine so that it can't be confused with the ones in the API
of shape.h.
Differential Revision: https://reviews.llvm.org/D123712
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions