Skip to content

Fix marshaling in AOT source generator - #1628

Merged
Manodasan Wignarajah (manodasanW) merged 5 commits into
staging/AOTfrom
manodasanw/fixsourcegeneratormarshaling
Jun 2, 2024
Merged

Manodasan Wignarajah (manodasanW) merged 5 commits into
staging/AOTfrom
manodasanw/fixsourcegeneratormarshaling

Conversation

@manodasanW

Copy link
Copy Markdown
Member
  • When we were marshaling bool, we were previously trying to cast to a byte from bool or vice versa. This results in a compiler error. Addressing it by replacing it with a check for != 0 or check for true / false.
  • Array marshaling was also broken for bool, fixing it by making it use MarshalNonBlittable rather than trying to find the ABI type for bool.

@manodasanW
Manodasan Wignarajah (manodasanW) merged commit 7602014 into staging/AOT Jun 2, 2024
@manodasanW
Manodasan Wignarajah (manodasanW) deleted the manodasanw/fixsourcegeneratormarshaling branch June 2, 2024 16:49
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.

3 participants