aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeter Steinfeld <psteinfeld@nvidia.com>2020-12-09 08:38:59 -0800
committerPeter Steinfeld <psteinfeld@nvidia.com>2020-12-10 07:36:41 -0800
commit9168a0f515c908dc3c3df822f17d489ec8a0caf2 (patch)
tree6c3b84fcb861a8a7e1cef07a8f57e7b777ff12b4 /clang/lib/Frontend/CompilerInvocation.cpp
parent456c885df369f1e94d60da2658055b21c88e471d (diff)
downloadllvm-9168a0f515c908dc3c3df822f17d489ec8a0caf2.zip
llvm-9168a0f515c908dc3c3df822f17d489ec8a0caf2.tar.gz
llvm-9168a0f515c908dc3c3df822f17d489ec8a0caf2.tar.bz2
[flang] Fix bogus message on index-names in the presence of associated entities
The semantic analysis of index-names of FORALL statements looks up symbols with the same name as the index-name. This is needed to exclude symbols that are not objects. But if the symbol found is host-, use-, or construct-associated with another entity, the check fails. I fixed this by getting the root symbol of the symbol found and doing the check on the root symbol. This required creating a non-const version of "GetAssociationRoot()". Differential Revision: https://reviews.llvm.org/D92970
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions