Skip to content

[6.0] [DebugInfo] Salvage stores + Fix verifier crash for complex switch #73528

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 7 commits into from
May 9, 2024

Conversation

Snowy1803
Copy link
Member

Snowy1803 added 7 commits May 8, 2024 15:53
When a store is salvaged, its debug_value will have two locations:
the location of the store, attached to the debug_value instruction,
and the location of the variable, attached to the SILDebugVariable.

The getDecl function was using the location of the store, instead
of the location of the variable, and so was returning nullptr.

(cherry picked from commit 6136183)
An alloc_stack, just like a debug_value, should ignore location
overrides for their variable.

Fixes swiftlang#73338
rdar://127348128

(cherry picked from commit 95d2479)
@Snowy1803 Snowy1803 requested a review from a team as a code owner May 8, 2024 23:00
@Snowy1803
Copy link
Member Author

@swift-ci please test

@adrian-prantl adrian-prantl enabled auto-merge May 9, 2024 00:14
@adrian-prantl adrian-prantl merged commit 5b17a5e into swiftlang:release/6.0 May 9, 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