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

Fix capturing NRVO variables #3902

Merged
merged 1 commit into from
Jan 21, 2022
Merged

Fix capturing NRVO variables #3902

merged 1 commit into from
Jan 21, 2022

Conversation

kinke
Copy link
Member

@kinke kinke commented Jan 17, 2022

Fixes #3883 by capturing NRVO vars by ref - unless the nested context is a heap closure.

Fixes ldc-developers#3883 by capturing NRVO vars by ref - unless the nested context
is a heap closure.
@kinke kinke merged commit c100c15 into ldc-developers:master Jan 21, 2022
@kinke kinke deleted the fix3883 branch January 21, 2022 02:41
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.

No NRVO for captured variables
1 participant