[OPENMP]Fix error emission for dependent expressions in iterators for depend clauses.
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 26 Nov 2021 15:36:25 +0000 (07:36 -0800)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 2 Dec 2021 20:59:03 +0000 (12:59 -0800)
commita9036f2eb42d2311d84198868e9e8ff060c79a95
treea6c6df14dfe4bc4a5e26347fa90c5ac86c87a518
parent8f4013ad465fe67a26fec1e55c92978c616a0ed3
[OPENMP]Fix error emission for dependent expressions in iterators for depend clauses.

Need to postpone analysis for addressable lvalue in a depend clause with
iterators, otherwise the incorrect error message is emitted.

Differential Revision: https://reviews.llvm.org/D114653
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_enter_data_depend_messages.cpp
clang/test/OpenMP/target_exit_data_depend_messages.cpp
clang/test/OpenMP/target_update_depend_messages.cpp
clang/test/OpenMP/task_depend_template_call_ast_print.cpp [new file with mode: 0644]