File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1759,7 +1759,7 @@ static mlir::omp::MapInfoOp processDescriptorTypeMappings(
1759
1759
// !fir.ref<!fir.box<...>> to access the data we need to map we must
1760
1760
// perform an alloca and then store to it and retrieve the data from the new
1761
1761
// alloca.
1762
- if (fir::isAssumedShape ( fir::unwrapRefType (descriptorAddr.getType () ))) {
1762
+ if (mlir::isa< fir::BaseBoxType> (descriptorAddr.getType ())) {
1763
1763
mlir::OpBuilder::InsertPoint insPt = firOpBuilder.saveInsertionPoint ();
1764
1764
firOpBuilder.setInsertionPointToStart (firOpBuilder.getAllocaBlock ());
1765
1765
descriptor =
@@ -1777,7 +1777,7 @@ static mlir::omp::MapInfoOp processDescriptorTypeMappings(
1777
1777
mapCaptureType),
1778
1778
mlir::omp::VariableCaptureKind::ByRef, descDataBaseAddr.getType ()));
1779
1779
1780
- // TODO: map the addendum segment of the descriptor, similarly to the abose
1780
+ // TODO: map the addendum segment of the descriptor, similarly to the above
1781
1781
// base address/data pointer member.
1782
1782
1783
1783
return createMapInfoOp (
Original file line number Diff line number Diff line change @@ -331,8 +331,7 @@ bool isAllocatableOrPointerArray(mlir::Type ty) {
331
331
}
332
332
333
333
bool isTypeWithDescriptor (mlir::Type ty) {
334
- if (fir::isPointerType (ty) || fir::isAllocatableType (ty) ||
335
- fir::isAssumedShape (ty))
334
+ if (mlir::isa<fir::BaseBoxType>(unwrapRefType (ty)))
336
335
return true ;
337
336
return false ;
338
337
}
You can’t perform that action at this time.
0 commit comments