@@ -695,9 +695,9 @@ BoxProcType::verify(llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
695
695
}
696
696
697
697
static bool cannotBePointerOrHeapElementType (mlir::Type eleTy) {
698
- return eleTy. isa <BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
698
+ return mlir:: isa<BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
699
699
SliceType, FieldType, LenType, HeapType, PointerType,
700
- ReferenceType, TypeDescType>();
700
+ ReferenceType, TypeDescType>(eleTy );
701
701
}
702
702
703
703
// ===----------------------------------------------------------------------===//
@@ -776,10 +776,10 @@ void fir::CharacterType::print(mlir::AsmPrinter &printer) const {
776
776
mlir::LogicalResult
777
777
fir::ClassType::verify (llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
778
778
mlir::Type eleTy) {
779
- if (eleTy. isa <fir::RecordType, fir::SequenceType, fir::HeapType,
779
+ if (mlir:: isa<fir::RecordType, fir::SequenceType, fir::HeapType,
780
780
fir::PointerType, mlir::NoneType, mlir::IntegerType,
781
781
mlir::FloatType, fir::CharacterType, fir::LogicalType,
782
- fir::ComplexType, mlir::ComplexType>())
782
+ fir::ComplexType, mlir::ComplexType>(eleTy ))
783
783
return mlir::success ();
784
784
return emitError () << " invalid element type\n " ;
785
785
}
@@ -1050,8 +1050,8 @@ void fir::ReferenceType::print(mlir::AsmPrinter &printer) const {
1050
1050
mlir::LogicalResult fir::ReferenceType::verify (
1051
1051
llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
1052
1052
mlir::Type eleTy) {
1053
- if (eleTy. isa <ShapeType, ShapeShiftType, SliceType, FieldType, LenType,
1054
- ReferenceType, TypeDescType>())
1053
+ if (mlir:: isa<ShapeType, ShapeShiftType, SliceType, FieldType, LenType,
1054
+ ReferenceType, TypeDescType>(eleTy ))
1055
1055
return emitError () << " cannot build a reference to type: " << eleTy << ' \n ' ;
1056
1056
return mlir::success ();
1057
1057
}
@@ -1126,9 +1126,9 @@ mlir::LogicalResult fir::SequenceType::verify(
1126
1126
llvm::ArrayRef<int64_t> shape, mlir::Type eleTy,
1127
1127
mlir::AffineMapAttr layoutMap) {
1128
1128
// DIMENSION attribute can only be applied to an intrinsic or record type
1129
- if (eleTy. isa <BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
1129
+ if (mlir:: isa<BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
1130
1130
ShiftType, SliceType, FieldType, LenType, HeapType, PointerType,
1131
- ReferenceType, TypeDescType, SequenceType>())
1131
+ ReferenceType, TypeDescType, SequenceType>(eleTy ))
1132
1132
return emitError () << " cannot build an array of this element type: "
1133
1133
<< eleTy << ' \n ' ;
1134
1134
return mlir::success ();
@@ -1199,9 +1199,9 @@ void fir::TypeDescType::print(mlir::AsmPrinter &printer) const {
1199
1199
mlir::LogicalResult fir::TypeDescType::verify (
1200
1200
llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
1201
1201
mlir::Type eleTy) {
1202
- if (eleTy. isa <BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
1202
+ if (mlir:: isa<BoxType, BoxCharType, BoxProcType, ShapeType, ShapeShiftType,
1203
1203
ShiftType, SliceType, FieldType, LenType, ReferenceType,
1204
- TypeDescType>())
1204
+ TypeDescType>(eleTy ))
1205
1205
return emitError () << " cannot build a type descriptor of type: " << eleTy
1206
1206
<< ' \n ' ;
1207
1207
return mlir::success ();
0 commit comments