[OpenMP 5.0] Fix user-defined mapper lookup in sema
authorMichael Kruse <llvm@meinersbur.de>
Thu, 26 Sep 2019 22:53:01 +0000 (22:53 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 26 Sep 2019 22:53:01 +0000 (22:53 +0000)
commit945249b5a99d44f494e084a7c1ac5da810f16f6a
tree8a4ec7c23970b6ab8780f6f72d1e13768b34f788
parentbf322b7cdd608630a42fd65687b74051601c357d
[OpenMP 5.0] Fix user-defined mapper lookup in sema

This patches fixes the case when a user-defined mapper is attached to
the elements of an array, and to report error when a mapper is used for
types other than struct, class, and union.

Patch by Lingda Li <lildmh@gmail.com>

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

llvm-svn: 373023
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_mapper_messages.c
clang/test/OpenMP/declare_mapper_messages.cpp