[OPENMP] Allow to use declare target variables in map clauses
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 16 Apr 2018 20:34:41 +0000 (20:34 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 16 Apr 2018 20:34:41 +0000 (20:34 +0000)
commit2c1dffece66610e30cc71b710b52f855a3738e43
treef7da8421d34e255691aade126b8e2e7525250f4a
parent7c55265c2dfad74f91530f86a61357e22a472dfa
[OPENMP] Allow to use declare target variables in map clauses

Global variables marked as declare target are allowed to be used in map
clauses. Patch fixes the crash of the compiler on the declare target
variables in map clauses.

llvm-svn: 330156
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/declare_target_codegen.cpp