aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeter Klausler <35819229+klausler@users.noreply.github.com>2024-07-11 13:42:51 -0700
committerGitHub <noreply@github.com>2024-07-11 13:42:51 -0700
commiteb9a78bb542434258f4f06097a0a336a055847a3 (patch)
tree965ec3cd44568faff457a47c79f3d3cc88dc77b3 /flang/lib/Frontend/CompilerInvocation.cpp
parenta074f8869563cb5b296732e0e8af46dcdc286ae5 (diff)
downloadllvm-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