From 2a2ddd5748c96f7e59e04cc3270bcd2814c9d0a7 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 18 Oct 2024 19:35:01 -0700 Subject: [PATCH] Avoid shared const expressions for now Like shared function bodies, this can be cordoned off until later. --- crates/wasm-smith/src/core.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/wasm-smith/src/core.rs b/crates/wasm-smith/src/core.rs index 988015908c..1b22d6305e 100644 --- a/crates/wasm-smith/src/core.rs +++ b/crates/wasm-smith/src/core.rs @@ -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)?;