Skip to content

Commit

Permalink
Fix #8470: fuzz_bounds should use select() rather than Select::make() (
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson authored Nov 8, 2024
1 parent 45da57a commit a397712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/fuzz/bounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ Expr random_expr(FuzzedDataProvider &fdp, Type t, int depth, bool overflow_undef
auto c = random_condition(fdp, t, depth, true);
auto e1 = random_expr(fdp, t, depth, overflow_undef);
auto e2 = random_expr(fdp, t, depth, overflow_undef);
return Select::make(c, e1, e2);
// Don't use Select::make: we want to use select() here to
// ensure that the condition and values match types.
return select(c, e1, e2);
},
[&]() {
if (t.lanes() != 1) {
Expand Down

0 comments on commit a397712

Please sign in to comment.