Skip to content

Commit

Permalink
Avoid shared const expressions for now
Browse files Browse the repository at this point in the history
Like shared function bodies, this can be cordoned off until later.
  • Loading branch information
abrown committed Oct 19, 2024
1 parent 2141b0c commit 2a2ddd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/wasm-smith/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,10 @@ impl Module {
match ty.heap_type {
HeapType::Abstract {
ty: AbstractHeapType::Func,
..
// TODO: handle shared; here we should pick as choices
// only functions that match the sharedness of this
// type.
shared: false,
} if num_funcs > 0 => {
choices.push(Box::new(move |u, _| {
let func = u.int_in_range(0..=num_funcs - 1)?;
Expand Down

0 comments on commit 2a2ddd5

Please sign in to comment.