Skip to content

[6.0] [DebugInfo] [SelectionDAG] Fix handling of duplicate dbg values #8485

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

Snowy1803
Copy link
Member

Before this fix, a duplicate llvm.dbg.value intrinsic referring to an argument, after an alloca, would be generated with $noreg, losing debug information. Instead, we silently drop the second debug info, so it doesn't break the first one.

rdar://125375717

Cherry picked from commit 0e5c504
Original PR llvm#86598

…#86598)

Before this fix, a duplicate llvm.dbg.value intrinsic referring to an
argument, after an alloca, would be generated with `$noreg`, losing
debug information. Instead, we silently drop the second debug info, so
it doesn't break the first one.

rdar://125375717
(cherry picked from commit 0e5c504)
@Snowy1803 Snowy1803 requested a review from adrian-prantl March 27, 2024 19:50
@Snowy1803
Copy link
Member Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 4d92e1d into swiftlang:swift/release/6.0 Mar 28, 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