[all-commits] [llvm/llvm-project] aca901: [flang] Fix crash on SELECT RANK
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sun Feb 12 12:16:44 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aca9016bcde040ea03512ee1e23f61f08b3b07b9
https://github.com/llvm/llvm-project/commit/aca9016bcde040ea03512ee1e23f61f08b3b07b9
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-02-12 (Sun, 12 Feb 2023)
Changed paths:
M flang/include/flang/Evaluate/tools.h
M flang/lib/Evaluate/shape.cpp
M flang/lib/Evaluate/tools.cpp
M flang/lib/Semantics/expression.cpp
Log Message:
-----------
[flang] Fix crash on SELECT RANK
In some circumstances, such as in compile-time array shape analysis,
clients of the utility function ResolveAssociations() don't really
want it to drill all of the way down to an assumed-rank dummy argument.
Add a variation, ResolveAssociationsExceptSelectRank(), that
will return a specific rank case's AssocEntity symbol instead.
This fixes a crash in subscript validation checking that stemmed from
deducing an incorrect number of lower and upper bound expressions
from a specific rank case association entity.
Differential Revision: https://reviews.llvm.org/D143778
More information about the All-commits
mailing list