[OPENMP]Emit error message for allocate directive without allocator
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Mar 2019 14:41:39 +0000 (14:41 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 22 Mar 2019 14:41:39 +0000 (14:41 +0000)
commit2213dd61d623153c9671be880bd30d1d6bb0abaa
tree4d1ca7fc6e1b241341966ee9910c991c99d4a506
parent3285c0f065ec6ddb6cf8c41dbc76a3bde09e04a1
[OPENMP]Emit error message for allocate directive without allocator
clause in target region.

According to the OpenMP 5.0, 2.11.3 allocate Directive, Restrictions,
allocate directives that appear in a target region must specify an
allocator clause unless a requires directive with the dynamic_allocators
clause is present in the same compilation unit.

llvm-svn: 356752
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nvptx_allocate_codegen.cpp
clang/test/OpenMP/nvptx_allocate_messages.cpp [new file with mode: 0644]