Skip to content

Commit 763444e

Browse files
committed
fix one more gc cfg
1 parent 846bb58 commit 763444e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/wasmtime/src/runtime/component/func/options.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ impl Options {
9999

100100
// This call doesn't take any GC refs, and therefore we shouldn't ever
101101
// need to GC before entering Wasm.
102+
#[cfg(feature = "gc")]
102103
debug_assert!(!ReallocFunc::need_gc_before_call_raw(store.0, &params));
103104

104105
// Invoke the wasm malloc function using its raw and statically known

crates/wasmtime/src/runtime/func/typed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ where
155155
}
156156

157157
#[inline]
158+
#[cfg(feature = "gc")]
158159
pub(crate) fn need_gc_before_call_raw(_store: &StoreOpaque, _params: &Params) -> bool {
159-
#[cfg(feature = "gc")]
160160
{
161161
// See the comment in `Func::call_impl_check_args`.
162162
let num_gc_refs = _params.vmgcref_pointing_to_object_count();

0 commit comments

Comments
 (0)