File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
mlir/lib/Target/LLVMIR/Dialect/OpenMP Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2172,15 +2172,14 @@ static llvm::omp::OpenMPOffloadMappingFlags mapParentWithMembers(
2172
2172
// opaque pointers we lose the ability to easily check if something is
2173
2173
// a pointer whilst maintaining access to the underlying type.
2174
2174
static bool checkIfPointerMap (mlir::omp::MapInfoOp mapOp) {
2175
+ // If we have a varPtrPtr field assigned then the underlying type is a pointer
2176
+ if (mapOp.getVarPtrPtr ())
2177
+ return true ;
2178
+
2175
2179
// If the map data is declare target with a link clause, then it's represented
2176
2180
// as a pointer when we lower it to LLVM-IR even if at the MLIR level it has
2177
2181
// no relation to pointers.
2178
- if (isDeclareTargetLink (mapOp.getVarPtrPtr () ? mapOp.getVarPtrPtr ()
2179
- : mapOp.getVarPtr ()))
2180
- return true ;
2181
-
2182
- // If we have a varPtrPtr field assigned then the underlying type is a pointer
2183
- if (mapOp.getVarPtrPtr ())
2182
+ if (isDeclareTargetLink (mapOp.getVarPtr ()))
2184
2183
return true ;
2185
2184
2186
2185
return false ;
You can’t perform that action at this time.
0 commit comments