[OpenMP] Allow negative lower bound in array sections based on pointers
authorKelvin Li <kkwli0@gmail.com>
Wed, 20 Jul 2016 20:45:29 +0000 (20:45 +0000)
committerKelvin Li <kkwli0@gmail.com>
Wed, 20 Jul 2016 20:45:29 +0000 (20:45 +0000)
commitad9ecbab42539a722fa9688eca509912cfeb7df8
tree4b3baa9818f565835d0b8b2f0a69d6863f8fda29
parent4f90c2f9df50d244a238e845c39886e8e6ddc2dd
[OpenMP] Allow negative lower bound in array sections based on pointers

OpenMP 4.5 removed the restriction that array section lower bound must be non negative.
This change is to allow negative values for array section based on pointers.
For array section based on array type there is still a restriction: "The array section must be a subset of the original array."

Patch by David S.

Differential Revision: https://reviews.llvm.org/D22481

llvm-svn: 276177
14 files changed:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExpr.cpp
clang/test/OpenMP/target_depend_messages.cpp
clang/test/OpenMP/target_enter_data_depend_messages.cpp
clang/test/OpenMP/target_exit_data_depend_messages.cpp
clang/test/OpenMP/target_map_messages.cpp
clang/test/OpenMP/target_parallel_depend_messages.cpp
clang/test/OpenMP/target_parallel_for_depend_messages.cpp
clang/test/OpenMP/target_parallel_for_map_messages.cpp
clang/test/OpenMP/target_parallel_for_simd_depend_messages.cpp
clang/test/OpenMP/target_parallel_for_simd_map_messages.cpp
clang/test/OpenMP/target_parallel_map_messages.cpp
clang/test/OpenMP/target_update_depend_messages.cpp
clang/test/OpenMP/task_depend_messages.cpp