Skip to content

[move-function] Be more pedantic about ensuring that undef dbg value have same scope/loc as the original dbg value. #41490

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

Merged

Conversation

gottesmm
Copy link
Contributor

Otherwise, LLVM doesn't consider them to be the same. I also added some tests to validate this behavior.

…lvm level uses the same loc.

The backend in order to emit correct dwarf requires the debug info part of the
dbg.addr or dbg.value to be exactly the same, including the line info. We obey
this in the examples in tree today and these test additions validate that they
continue to work correctly.
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test linux platform

@gottesmm gottesmm merged commit 30d318a into swiftlang:main Feb 21, 2022
@gottesmm gottesmm deleted the pr-69fa70aa45829cb5910c4dc41dba47feea4454a1 branch February 21, 2022 03:59
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