Skip to content

Fix memory64 passing of (rep i64) for borrows - #754

Open
lukewagner wants to merge 1 commit into
mainfrom
fix-mem64
Open

lukewagner wants to merge 1 commit into
mainfrom
fix-mem64

Conversation

@lukewagner

Copy link
Copy Markdown
Member

This PR fills in a case we missed in #624 (which added 🐘-gated memory64 support) which is, when a (borrow $R) handle is passed to the component that defined $R, the (i64) rep value must be passed instead of the i32 handle index. This involved plumbing the LiftLowerContext down into alignment and elem_size (which were previously invariant, but now care about the direction and current-instance) and adding the lift/lower direction to LiftLowerContext. This allowed a bit of tidying up to make things less verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant