aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2024-11-14 14:57:39 -0800
committerGitHub <noreply@github.com>2024-11-14 14:57:39 -0800
commitd68332d0627f6492866298038e1085e4aff0f476 (patch)
tree97d83d30b5115221c5d9c669fad26b1f34cd39b3 /llvm/lib/CodeGen
parentebc0163cea1cb1ad44f9c438064a52df7e5fc517 (diff)
downloadllvm-d68332d0627f6492866298038e1085e4aff0f476.zip
llvm-d68332d0627f6492866298038e1085e4aff0f476.tar.gz
llvm-d68332d0627f6492866298038e1085e4aff0f476.tar.bz2
[flang] Fix spurious error messages due to INTRINSIC nested in BLOCK (#115889)
When skimmming executable parts to collect names used in procedure calls, it is important to exclude names that have local declarations in nested BLOCK constructs. The mechanism for handling these nested declarations was catching only names whose declarations include an "entity-decl", and so names appearing in other declaration statements (like INTRINSIC and EXTERNAL statements) were not hidden from the scan, leading to absurd error messages when such names turn out to be procedures in the nested BLOCK construct but to not be procedures outside it. This patch fixes the code that detects local declarations in BLOCK for all of the missed cases that don't use entity-decls; only INTRINSIC and EXTERNAL could affect the procedures whose names are of interest to the executable part skimmer, but perhaps future work will want to collect non-procedures as well, so I plugged all of the holes that I could find. Fixes https://github.com/llvm/llvm-project/issues/115674.
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions