Skip to content

Commit abf3a84

Browse files
committed
review: do not convert RuntimeTableIndex to a context offset too early
1 parent 16029c3 commit abf3a84

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
@@ -1346,7 +1346,7 @@ impl<'a> TrampolineCompiler<'a> {
13461346
let table = self
13471347
.builder
13481348
.ins()
1349-
.iconst(ir::types::I32, i64::from(self.offsets.runtime_table(table)));
1349+
.iconst(ir::types::I32, i64::from(table.as_u32()));
13501350

13511351
self.translate_intrinsic_libcall(
13521352
vmctx,

0 commit comments

Comments
 (0)