Skip to content

[6.0] [DebugInfo] Small fixes #73114

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

Snowy1803
Copy link
Member

The source location for the variable should be the value in VarInfo if set,
otherwise it should use the location of the instruction. Both ways should
be consistent, and as we use column number if VarInfo is set, we have to do
it if isnt, too.

(cherry picked from commit 3136d2e)
SILBuilderWithScope ignores the scope of the debug value and uses the
scope of the next real instruction. We want to preserve the scope
of the original debug value, so we pass it explicitly.

(cherry picked from commit fac61c5)
Salvage Debug Info was only being called for simplifications, and not
for function passes written in Swift. Salvage Debug Info is now called
for both cases.

(cherry picked from commit 4a543c8)
rdar://126620071
(cherry picked from commit a9d89e5)
@Snowy1803 Snowy1803 requested a review from a team as a code owner April 18, 2024 18:40
@Snowy1803
Copy link
Member Author

@swift-ci please test

@adrian-prantl adrian-prantl merged commit 51e874b into swiftlang:release/6.0 Apr 25, 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