Skip to content

[DebugInfo] Salvage debug info for tuples #72860

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
merged 2 commits into from
Apr 6, 2024

Conversation

Snowy1803
Copy link
Member

This PR adds support for salvaging removed tuple SIL instructions.

  • Revert the addition of the implicit attribute for debug variables. The implicit attribute meant that implicit variables, such as self, error in a catch, newValue in a property setter, etc., were allowed to be removed at -Onone! rdar://125939953
  • Add support for salvaging removed tuple SIL instructions

With only the second commit, those variables were being removed at Onone and salvaged, which unexpectedly introduced fragments at Onone, which are not compatible with debugger shadow copies. After reverting the implicit attribute, the fragments are now correctly only created when optimizations are enabled.

… variable"

This reverts commit e63632f.

rdar://125939953
@Snowy1803 Snowy1803 force-pushed the salvage-debug-info-tuple branch 2 times, most recently from 4081ea4 to 38a0f3f Compare April 5, 2024 01:06
@Snowy1803 Snowy1803 marked this pull request as ready for review April 5, 2024 01:07
@Snowy1803
Copy link
Member Author

@swift-ci please test

@Snowy1803
Copy link
Member Author

@swift-ci please test windows platform

@Snowy1803
Copy link
Member Author

@swift-ci Please Test Source Compatibility

@Snowy1803
Copy link
Member Author

Source Compatibility failures are the same as on main (Debug PR = Debug on main | Release (passing))

@Snowy1803 Snowy1803 force-pushed the salvage-debug-info-tuple branch from 38a0f3f to cda8f15 Compare April 5, 2024 22:18
@Snowy1803 Snowy1803 force-pushed the salvage-debug-info-tuple branch from cda8f15 to 1e7dc51 Compare April 5, 2024 22:34
@Snowy1803
Copy link
Member Author

@swift-ci please smoke test

@Snowy1803 Snowy1803 enabled auto-merge April 5, 2024 22:35
@Snowy1803
Copy link
Member Author

@swift-ci please test windows platform

@Snowy1803 Snowy1803 merged commit 512ac6c into swiftlang:main Apr 6, 2024
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.

2 participants