Skip to content

transpile: Move some translation from convert_address_of_common to convert_literal#1633

Merged
kkysen merged 2 commits intoimmunant:masterfrom
Rua:convert-literal-refactor
Mar 3, 2026
Merged

transpile: Move some translation from convert_address_of_common to convert_literal#1633
kkysen merged 2 commits intoimmunant:masterfrom
Rua:convert-literal-refactor

Conversation

@Rua
Copy link
Contributor

@Rua Rua commented Mar 3, 2026

Rather than convert_address_of_common completely discarding the previously translated val for string literals, it now does part of the correct translation in convert_literal so that no discarding is needed. This will probably be needed to get #1628 working, since add_feature (for const blocks) will have an effect even if code is discarded.

Also, as_ptr is now used, to be consistent with other kinds of array.

@Rua Rua force-pushed the convert-literal-refactor branch 3 times, most recently from 16797b7 to 37ec6a0 Compare March 3, 2026 16:22
@Rua Rua marked this pull request as ready for review March 3, 2026 16:51
Copy link
Contributor

@kkysen kkysen left a comment

Choose a reason for hiding this comment

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

Just one little nit, but otherwise it LGTM! Thanks!

@Rua Rua force-pushed the convert-literal-refactor branch from b30aa5d to f2c0bf4 Compare March 3, 2026 17:41
@Rua Rua force-pushed the convert-literal-refactor branch from f2c0bf4 to 6659130 Compare March 3, 2026 17:46
@kkysen kkysen merged commit f7899f2 into immunant:master Mar 3, 2026
11 checks passed
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.

2 participants