File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
flang/lib/Optimizer/OpenMP Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,9 @@ class MapsForPrivatizedSymbolsPass
114114 captureKind = mlir::omp::VariableCaptureKind::ByCopy;
115115 }
116116 }
117- // TODO: We should be looking at the defaultmap here. However, at this time
118- // defaultmap on a target directive ins't modelled in the omp MLIR directive
119- // Once that is in place, we should move both lowering and this pass
120- // to use a utility function (like getImplicitMapTypeAndKind in
121- // lib/Lower/OpenMP/OpenMP.cpp) to get the mapFlag value here.
117+
118+ // Use tofrom if what we are mapping is not a trivial type. In all
119+ // likelihood, it is a descriptor
122120 mlir::omp::ClauseMapFlags mapFlag;
123121 if (fir::isa_trivial (fir::unwrapRefType (varType)) ||
124122 fir::isa_char (fir::unwrapRefType (varType)))
You can’t perform that action at this time.
0 commit comments