summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-11-02 15:24:47 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-11-02 15:24:47 +0000
commit9476ca7db9c4a62df8546359e34a6e3b364aea03 (patch)
treefccd592c58ed8d1f859d707cfa2234f746d4c62b
parent366d7285a1044ef3892412de51fc1dd1fb3fd925 (diff)
downloadbcm5719-llvm-9476ca7db9c4a62df8546359e34a6e3b364aea03.tar.gz
bcm5719-llvm-9476ca7db9c4a62df8546359e34a6e3b364aea03.zip
[OPENMP][OFFLOADING]Change the lambda capturing flags.
Summary: The previously used combination `PTR_AND_OBJ | PRIVATE` could be used for mapping of some data in Fortran. Changed it to `PTR_AND_OBJ | LITERAL`. Reviewers: gtbercea Subscribers: guansong, caomhin, openmp-commits Differential Revision: https://reviews.llvm.org/D54035 llvm-svn: 345981
-rw-r--r--openmp/libomptarget/src/omptarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/src/omptarget.cpp b/openmp/libomptarget/src/omptarget.cpp
index f59701cdc92..a1ffd04f29c 100644
--- a/openmp/libomptarget/src/omptarget.cpp
+++ b/openmp/libomptarget/src/omptarget.cpp
@@ -543,7 +543,7 @@ int target_data_update(DeviceTy &Device, int32_t arg_num,
}
static const unsigned LambdaMapping = OMP_TGT_MAPTYPE_PTR_AND_OBJ |
- OMP_TGT_MAPTYPE_PRIVATE |
+ OMP_TGT_MAPTYPE_LITERAL |
OMP_TGT_MAPTYPE_IMPLICIT;
static bool isLambdaMapping(int64_t Mapping) {
return (Mapping & LambdaMapping) == LambdaMapping;
OpenPOWER on IntegriCloud