[OPENMP]Fix PR48076: Check map types array before accessing its front.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Nov 2020 18:20:22 +0000 (10:20 -0800)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Nov 2020 20:00:29 +0000 (12:00 -0800)
commit3c6b457bee0c66294637d50bca1cff7231647249
tree54106f086a55dfaef600dee0b3ff9e46c729aae8
parent6881a82e8c31e420b7ec163928c8737812c8bd3b
[OPENMP]Fix PR48076: Check map types array before accessing its front.

Need to check if there are map types for the components before trying to
access them when trying to modify type mappings for combined partial
mappings.

Differential Revision: https://reviews.llvm.org/D91370
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_data_member_codegen.cpp [new file with mode: 0644]