Skip to content

[move-function-dbginfo] Modify a test slightly to fix the arm64 bots and re-enable that test. #42261

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Apr 8, 2022

The pattern started to fail here since the variable "m" is not a variable that
we moved so as a result we use heuristics to determine if it should become an
entry value.

Noting that we only pattern match "m" to ensure that we can easily check the
variable "k" afterwards (the thing that was actually moved), I just loosened the
pattern so that we validate that we found "m" but do not check "m"'s
location. This guarantees that on all platforms this will pattern match
appropriately.

rdar://91467528

…and re-enable that test.

The pattern started to fail here since the variable "m" is not a variable that
we moved so as a result we use heuristics to determine if it should become an
entry value.

Noting that we only pattern match "m" to ensure that we can easily check the
variable "k" afterwards (the thing that was actually moved), I just loosened the
pattern so that we validate that we found "m" but do not check "m"'s
location. This guarantees that on all platforms this will pattern match
appropriately.

rdar://91467528
@gottesmm
Copy link
Contributor Author

gottesmm commented Apr 8, 2022

@swift-ci test

@gottesmm
Copy link
Contributor Author

gottesmm commented Apr 8, 2022

@swift-ci Please test Apple Silicon

@gottesmm
Copy link
Contributor Author

gottesmm commented Apr 8, 2022

I tested this locally and made sure that Apple Silicon worked. I have been waiting for the macOS platform on apple silicon to start working for 2 hours...

@gottesmm gottesmm merged commit dc58361 into swiftlang:main Apr 8, 2022
@gottesmm gottesmm deleted the pr-3e8c54c415b1187948e199a924c18e9725b71aa4 branch April 8, 2022 23:35
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.

1 participant