[flang] Detect image control statements in non-construct IF statements
authorPeter Klausler <pklausler@nvidia.com>
Fri, 17 Mar 2023 22:26:25 +0000 (15:26 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 28 Mar 2023 00:13:20 +0000 (17:13 -0700)
commit1b56f273b27114322187ea0509762671cdec9e84
tree9468b0842e655cf63dc8ce94f69d93a255acecf3
parentde7639ddb05e46ffd3bdbf0d562249c95c544d2b
[flang] Detect image control statements in non-construct IF statements

The utility routine in semantics that determines whether an
executable construct constitutes an image control statement
was not examining the single action statement controlled by
a non-construct IF statement, e.g. 'IF(P) STOP'.

Differential Revision: https://reviews.llvm.org/D146584
flang/lib/Semantics/tools.cpp
flang/test/Semantics/doconcurrent01.f90