Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Exception Handling tag type when GC is enabled #3413

Merged

Conversation

TianlongLiang
Copy link
Contributor

@TianlongLiang TianlongLiang commented May 10, 2024

Use WASMFuncType to represent tag_type in WASMTagImport and WASMTag so that the type definition is consistent no matter to GC is enabled or disabled. This patch will fix #3409

core/iwasm/interpreter/wasm_loader.c Outdated Show resolved Hide resolved
core/iwasm/interpreter/wasm_loader.c Outdated Show resolved Hide resolved
#endif
tag_type->types[tti],
#if WASM_ENABLE_GC != 0
ref_type,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ref_type isn't set above, do you mean WASMRefType *ref_type = &wasm_ref_type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a comment and use &wasm_ref_type directly

Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenyongh wenyongh merged commit c6d42db into bytecodealliance:main May 13, 2024
377 checks passed
@TianlongLiang TianlongLiang deleted the dev/fix_wasmtype_conversion branch July 1, 2024 06:26
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.

Compilation errors when build iwasm with GC and EH support
2 participants