HomePhabricator

[OPENMP]Fix codegen for is_device_ptr component, captured by reference.

Authored by ABataev on Sep 15 2020, 12:57 PM.

Description

[OPENMP]Fix codegen for is_device_ptr component, captured by reference.

Need to map the component as TO instead of the literal, because need to
pass a reference to a component if the pointer is overaligned.

Reviewed By: jdoerfert

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