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 @@ -669,8 +669,7 @@ mlir::LogicalResult cir::VectorType::verify(
669
669
isAnyFloatingPointType (elementType))
670
670
return success ();
671
671
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" ;
674
673
}
675
674
676
675
// ===----------------------------------------------------------------------===//
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