[OPENMP] Analyze the type of the mapped entity instead of its base.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 2 May 2018 18:44:10 +0000 (18:44 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 2 May 2018 18:44:10 +0000 (18:44 +0000)
commit354df2eeabaffb6ead755d1808319da43172c40d
treeee004da64264d4c2e1b2900d658c5d43ae15360f
parentd0b5034b8a9da4401d0cce80338ef069f38ca487
[OPENMP] Analyze the type of the mapped entity instead of its base.

If the mapped entity is a data member, we erroneously checked the type
of its base rather than the type of the mapped entity itself.

llvm-svn: 331385
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_map_messages.cpp