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 {
8383 cir::IntType>(ty))
8484 return true ;
8585
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 ());
8888
8989 assert (!cir::MissingFeatures::unsizedTypes ());
9090 return false ;
Original file line number Diff line number Diff line change @@ -669,8 +669,7 @@ mlir::LogicalResult cir::VectorType::verify(
669669 isAnyFloatingPointType (elementType))
670670 return success ();
671671
672- return emitError () << " expected LLVM-compatible fixed-vector type "
673- " to be either builtin or LLVM dialect type" ;
672+ return emitError () << " unsupported element type for CIR vector" ;
674673}
675674
676675// ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change 44
55module {
66
7- // expected-error @below {{expected LLVM-compatible fixed-vector type}}
7+ // expected-error @below {{unsupported element type for CIR vector }}
88cir.global external @vec_b = #cir.zero : !cir.vector<4 x !cir.array<!s32i x 10>>
99
1010}
You can’t perform that action at this time.
0 commit comments