Skip to content

[DebugInfo] Fix dynamic self debug loc #71888

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

felipepiovezan
Copy link
Contributor

The instructions related to producing DynamicSelf metadata are always placed at the start of the function. This creates an issue: which debug location should be used in order to preserve a sane line table? The current implementation just uses w/e debug location is present in the new insertion point, which could, for example, be a debug_declare whose location is not suitable for these purposes.

This patch addresses the issue by removing the debug location of instructions associated with producing DynamicSelfMetadata.

rdar://120408665

@felipepiovezan
Copy link
Contributor Author

@swift-ci test

@felipepiovezan felipepiovezan force-pushed the felipe/dynamic_self_loc branch from 81b5866 to a3e29ec Compare February 26, 2024 20:55
@felipepiovezan
Copy link
Contributor Author

Added "requires concurrency" to test

@felipepiovezan
Copy link
Contributor Author

@swift-ci test

@felipepiovezan felipepiovezan force-pushed the felipe/dynamic_self_loc branch from a3e29ec to 81c405b Compare February 26, 2024 20:58
@felipepiovezan
Copy link
Contributor Author

@swift-ci test

@felipepiovezan
Copy link
Contributor Author

Added comment

The instructions related to producing DynamicSelf metadata are always placed at
the start of the function. This creates an issue: which debug location should be
used in order to preserve a sane line table? The current implementation just
uses w/e debug location is present in the new insertion point, which could, for
example, be a debug_declare whose location is not suitable for these purposes.

This patch addresses the issue by removing the debug location of instructions
associated with producing DynamicSelfMetadata.

rdar://120408665
@felipepiovezan felipepiovezan force-pushed the felipe/dynamic_self_loc branch from 81c405b to 07d5895 Compare February 26, 2024 23:15
@felipepiovezan
Copy link
Contributor Author

@swift-ci test

@felipepiovezan felipepiovezan merged commit 76252f8 into swiftlang:main Feb 27, 2024
@felipepiovezan felipepiovezan deleted the felipe/dynamic_self_loc branch February 27, 2024 05:57
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