File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
83
83
cir::IntType>(ty))
84
84
return true ;
85
85
86
- if (mlir::isa <cir::VectorType>(ty))
87
- return isSized (mlir::cast<cir::VectorType>(ty) .getElementType ());
86
+ if (const auto vt = mlir::dyn_cast <cir::VectorType>(ty))
87
+ return isSized (vt .getElementType ());
88
88
89
89
assert (!cir::MissingFeatures::unsizedTypes ());
90
90
return false ;
Original file line number Diff line number Diff line change @@ -699,8 +699,7 @@ mlir::LogicalResult cir::VectorType::verify(
699
699
isAnyFloatingPointType (elementType))
700
700
return success ();
701
701
702
- return emitError () << " expected LLVM-compatible fixed-vector type "
703
- " to be either builtin or LLVM dialect type" ;
702
+ return emitError () << " unsupported element type for CIR vector" ;
704
703
}
705
704
706
705
// ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change 4
4
5
5
module {
6
6
7
- // expected-error @below {{expected LLVM-compatible fixed-vector type}}
7
+ // expected-error @below {{unsupported element type for CIR vector }}
8
8
cir.global external @vec_b = #cir.zero : !cir.vector<4 x !cir.array<!s32i x 10>>
9
9
10
10
}
You can’t perform that action at this time.
0 commit comments