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

When an inlined method refers to method arguments in the true or false #4312

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link
Contributor

When an inlined method refers to method arguments in the true or false
branch of a conditional statement, refuse to allow it to be inlined.

Before calling the method in question, the caller has definitely
executed the expressions that yield the values passed to the method.

However, after inlining the body of the method into the callsite, one
of the two expressions will no longer be executed, leading to a subtle
behavior change if the un-executed expression was side-effecting.

@copybara-service copybara-service bot closed this Mar 20, 2024
@copybara-service copybara-service bot deleted the test_505200171 branch March 20, 2024 21:25
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.

0 participants