================
@@ -3996,6 +3993,8 @@ static void collectMapDataFromMapOperands(
     llvm::Value *origValue = moduleTranslation.lookupValue(offloadPtr);
     auto mapType = convertClauseMapFlags(mapOp.getMapType());
     auto mapTypeAlways = llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_ALWAYS;
+    bool isDevicePtr = (mapOp.getMapType() & omp::ClauseMapFlags::storage) ==
+                       omp::ClauseMapFlags::storage;
----------------
ergawy wrote:

nit:
```suggestion
    bool isDevicePtr = (mapOp.getMapType() & omp::ClauseMapFlags::storage);
```

https://github.com/llvm/llvm-project/pull/169367
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to