[OPENMP]Fix compiler crash for target data directive without actual target codegen.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 9 Jul 2020 12:34:06 +0000 (08:34 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 13 Jul 2020 14:52:24 +0000 (10:52 -0400)
commit7075c056e91bf95b111716a9722d10e1a61253bb
tree4cd31a2c75efc5836920a4a86c04e3037637e507
parent3aabfa28086757f8469ead77c7d319302e49d3c8
[OPENMP]Fix compiler crash for target data directive without actual target codegen.

Summary:
Need to privatize addresses of the captured variables when trying to
emit the body of the target data directive in no target codegen mode.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, cfe-commits, sstefan1, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83478
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/target_data_codegen.cpp