[OPENMP]Added check for non-random access types for the dependent loop
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 26 Apr 2019 19:28:37 +0000 (19:28 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 26 Apr 2019 19:28:37 +0000 (19:28 +0000)
commit5ddc6d180cd660fa1b70e0c251a95b70ad743ac9
tree4addcc6b9091b90f00093119772b7d899139bfd6
parent93c05f097a969666d48d67b8a658d5bc7e164478
[OPENMP]Added check for non-random access types for the dependent loop
counters.

According to the OpenMP 5.0, For any associated loop where the b or lb
expression is not loop invariant with respect to the outermost loop, the
var-outer that appears in the expression may not have a random access
iterator type.

llvm-svn: 359340
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/for_loop_messages.cpp