Skip to content

Commit f579f1b

Browse files
committed
Address code review comment
1 parent f14e9cf commit f579f1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/Dialect/IR/CIRTypes.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ mlir::LogicalResult cir::VectorType::verify(
658658
llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
659659
mlir::Type eltType, uint64_t size) {
660660
if (size == 0)
661-
return emitError() << "the number of vector elements must be positive";
661+
return emitError() << "the number of vector elements must be non-zero";
662662

663663
// Check if it a valid FixedVectorType
664664
if (mlir::isa<cir::PointerType, cir::FP128Type>(eltType))
@@ -668,7 +668,6 @@ mlir::LogicalResult cir::VectorType::verify(
668668
if (mlir::isa<cir::IntType>(eltType) || isAnyFloatingPointType(eltType))
669669
return success();
670670

671-
eltType.dump();
672671
return emitError() << "expected LLVM-compatible fixed-vector type "
673672
"to be either builtin or LLVM dialect type";
674673
}

0 commit comments

Comments
 (0)