Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 705028194
  • Loading branch information
XLS Team authored and copybara-github committed Dec 11, 2024
1 parent 5e5c96d commit 86b874b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xls/dslx/type_system/deduce_expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ absl::StatusOr<std::unique_ptr<Type>> DeduceArray(const Array* node,
// until we reach the array size.
if (node->has_ellipsis()) {
XLS_ASSIGN_OR_RETURN(int64_t array_size, type->size().GetAsInt64());
XLS_RET_CHECK(constexpr_values.size() > 0)
XLS_RET_CHECK(!constexpr_values.empty())
<< "Cannot have an array with ellipsis but no given member to repeat";
InterpValue last_value = constexpr_values.back();
while (constexpr_values.size() < array_size) {
Expand Down

0 comments on commit 86b874b

Please sign in to comment.