[OPENMP]Fix mapping of the pointers captured by reference.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 2 Apr 2019 16:03:40 +0000 (16:03 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 2 Apr 2019 16:03:40 +0000 (16:03 +0000)
commitc2b831fe1b551b78ec1c392f0a3d15a3351c1b8e
tree8984af06ede08504475a5b3f48f55203a2485928
parent7c16c5b6aec53ae59c5c611af55d089a84ed3f10
[OPENMP]Fix mapping of the pointers captured by reference.

If the pointer is captured by reference, it must be mapped as
_PTR_AND_OBJ kind of mapping to correctly translate the pointer address
on the device.

llvm-svn: 357488
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_firstprivate_codegen.cpp