Skip to content

Commit 51a7f84

Browse files
committed
fix +gc -gc-null -gc-drc build
1 parent 4e186ce commit 51a7f84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/cranelift/src/func_environ/gc/enabled.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,7 @@ impl FuncEnvironment<'_> {
12561256
}
12571257

12581258
/// Get the GC heap's base.
1259+
#[cfg(any(feature = "gc-null", feature = "gc-drc"))]
12591260
fn get_gc_heap_base(&mut self, builder: &mut FunctionBuilder) -> ir::Value {
12601261
let global = self.get_gc_heap_base_global(&mut builder.func);
12611262
builder.ins().global_value(self.pointer_type(), global)

0 commit comments

Comments
 (0)