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

Don't eagerly materialize an initializing expression used as the object in a compound member access. #4496

Conversation

zygoloid
Copy link
Contributor

@zygoloid zygoloid commented Nov 6, 2024

Instead, wait until we know whether it is used as a value or reference expression. This allows us to avoid materializing a temporary if it is used as a value and the initializing representation holds a copy of a value representation.

…ct in a

compound member access.

Instead, wait until we know whether it is used as a value or reference
expression. This allows us to avoid materializing a temporary if it is
used as a value and the initializing representation holds a copy of a
value representation.
@zygoloid zygoloid added this pull request to the merge queue Nov 11, 2024
Merged via the queue into carbon-language:trunk with commit 2c1d02d Nov 11, 2024
8 checks passed
@zygoloid zygoloid deleted the toolchain-no-materialize-compound-member-access branch November 11, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants