Skip to content

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