Skip to content

Commit 151417e

Browse files
committed
Address code review comment
1 parent 20050b6 commit 151417e

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
@@ -688,7 +688,7 @@ mlir::LogicalResult cir::VectorType::verify(
688688
llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
689689
mlir::Type eltType, uint64_t size) {
690690
if (size == 0)
691-
return emitError() << "the number of vector elements must be positive";
691+
return emitError() << "the number of vector elements must be non-zero";
692692

693693
// Check if it a valid FixedVectorType
694694
if (mlir::isa<cir::PointerType, cir::FP128Type>(eltType))
@@ -698,7 +698,6 @@ mlir::LogicalResult cir::VectorType::verify(
698698
if (mlir::isa<cir::IntType>(eltType) || isAnyFloatingPointType(eltType))
699699
return success();
700700

701-
eltType.dump();
702701
return emitError() << "expected LLVM-compatible fixed-vector type "
703702
"to be either builtin or LLVM dialect type";
704703
}

0 commit comments

Comments
 (0)