Skip to content

Commit cb2e84f

Browse files
committed
review: do not convert RuntimeTableIndex to a context offset too early
1 parent 48cca86 commit cb2e84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cranelift/src/compiler/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ impl<'a> TrampolineCompiler<'a> {
13451345
let table = self
13461346
.builder
13471347
.ins()
1348-
.iconst(ir::types::I32, i64::from(self.offsets.runtime_table(table)));
1348+
.iconst(ir::types::I32, i64::from(table.as_u32()));
13491349

13501350
self.translate_intrinsic_libcall(
13511351
vmctx,

0 commit comments

Comments
 (0)