Skip to content

Commit 2a2ddd5

Browse files
committed
Avoid shared const expressions for now
Like shared function bodies, this can be cordoned off until later.
1 parent 2141b0c commit 2a2ddd5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/wasm-smith/src/core.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,10 @@ impl Module {
17581758
match ty.heap_type {
17591759
HeapType::Abstract {
17601760
ty: AbstractHeapType::Func,
1761-
..
1761+
// TODO: handle shared; here we should pick as choices
1762+
// only functions that match the sharedness of this
1763+
// type.
1764+
shared: false,
17621765
} if num_funcs > 0 => {
17631766
choices.push(Box::new(move |u, _| {
17641767
let func = u.int_in_range(0..=num_funcs - 1)?;

0 commit comments

Comments
 (0)