aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorSlava Zakharin <szakharin@nvidia.com>2023-01-26 14:20:47 -0800
committerSlava Zakharin <szakharin@nvidia.com>2023-01-26 14:20:57 -0800
commit02445263e2f533573a935c1bd502d848bbe6bb27 (patch)
tree712a3fa4b52b9aff38ac02d5d4129705402c2e41 /llvm/lib/CodeGen/StackProtector.cpp
parente054e0da9fd7055142188036ee713e8c0697324b (diff)
downloadllvm-02445263e2f533573a935c1bd502d848bbe6bb27.zip
llvm-02445263e2f533573a935c1bd502d848bbe6bb27.tar.gz
llvm-02445263e2f533573a935c1bd502d848bbe6bb27.tar.bz2
[flang] Fixed restrictions checking for OpenACC loop-associated constructs.
CheckDoConcurrentClauseRestriction and CheckTileClauseRestriction expect that the construct has associated DoConstruct, while it is not set when the do-loop has no loop control. The change is to skip the clauses checks, when the do-loop does not have the loop control. An alternative fix would be to associate the DoConstruct even when the do-loop has no loop control and let Check*ClauseRestriction run their checks, but I am not sure if associating invalid DoConstruct is a good idea. This fixes failure in Semantics/OpenACC/acc-canonicalization-validity.f90 reported in D142279. Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D142652
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions