diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2024-07-11 13:42:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 13:42:51 -0700 |
commit | eb9a78bb542434258f4f06097a0a336a055847a3 (patch) | |
tree | 965ec3cd44568faff457a47c79f3d3cc88dc77b3 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | a074f8869563cb5b296732e0e8af46dcdc286ae5 (diff) | |
download | llvm-eb9a78bb542434258f4f06097a0a336a055847a3.zip llvm-eb9a78bb542434258f4f06097a0a336a055847a3.tar.gz llvm-eb9a78bb542434258f4f06097a0a336a055847a3.tar.bz2 |
[flang] Fix bad parse tree rewrite into a substring (#98407)
Data designators like "a(j:k)" are parsed into array section references,
but once rank and type information is in hand, some of them turn out to
actually be substring references. The code that recognizes these cases
was suffering from a "false positive" in the case of a construct entity
in a SELECT RANK construct due to the use of a predicate member function
(Symbol::IsObjectArray) that only works on ObjectEntityDetails symbols.
Fix the test to use the more general Symbol::Rank() member function.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions