Skip to content

Commit 78c66cf

Browse files
committed
[flang][NFC] Fix FIRTypes.td
Fix two typos and remove the incorrectly added `extraClassDeclaration` in `FIRTypes.td`. Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D135665
1 parent 5f4927d commit 78c66cf

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

flang/include/flang/Optimizer/Dialect/FIRTypes.td

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def fir_ClassType : FIR_Type<"Class", "class", [], "BaseBoxType"> {
142142
let summary = "Class type";
143143

144144
let description = [{
145-
Class type is used to model the Fortran CLASS instrinsic type. A class type
145+
Class type is used to model the Fortran CLASS intrinsic type. A class type
146146
is equivalent to a fir.box type with a dynamic type.
147147
}];
148148

@@ -426,15 +426,6 @@ def fir_ShiftType : FIR_Type<"Shift", "shift"> {
426426

427427
let parameters = (ins "unsigned":$rank);
428428
let hasCustomAssemblyFormat = 1;
429-
430-
let extraClassDeclaration = [{
431-
using KindTy = unsigned;
432-
433-
// a !fir.boxchar<k> always wraps a !fir.char<k, ?>
434-
CharacterType getElementType(mlir::MLIRContext *context) const;
435-
436-
CharacterType getEleTy() const;
437-
}];
438429
}
439430

440431
def fir_SequenceType : FIR_Type<"Sequence", "array"> {
@@ -538,7 +529,7 @@ def fir_VectorType : FIR_Type<"Vector", "vector"> {
538529

539530
let description = [{
540531
Replacement for the builtin vector type.
541-
The FIR vector type is always rank one. It's size is always a constant.
532+
The FIR vector type is always rank one. Its size is always a constant.
542533
A vector's element type must be real or integer.
543534
}];
544535

0 commit comments

Comments
 (0)