8000 [IRGen] This ArtificialLoc requires a debug scope. by nate-chandler · Pull Request #81808 · swiftlang/swift · GitHub
[go: up one dir, main page]

Skip to content

[IRGen] This ArtificialLoc requires a debug scope. #81808

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 1 commit into from
May 29, 2025

Conversation

nate-chandler
Copy link
Contributor

An IRGenFunction may not have a debug scope--for example, a dispatch thunk--but creating an AritificalLocation requires one. Only create an ArtificalLocation here if the IRGenFunction has one.

Unfortunately, I don't have an isolated test case. Fixes a compiler crash.

An `IRGenFunction` may not have a debug scope--for example, a dispatch
thunk--but creating an `AritificalLocation` requires one.  Only create
an `ArtificalLocation` here if the `IRGenFunction` has one.

Unfortunately, I don't have an isolated test case.  Fixes a compiler
crash.
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor
@rastogishubham rastogishubham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nate-chandler
Copy link
Contributor Author

@swift-ci please test linux platform

@nate-chandler
Copy link
Contributor Author

@swift-ci please test macos platform

@nate-chandler nate-chandler marked this pull request as ready for review May 29, 2025 21:40
@nate-chandler nate-chandler requested a review from rjmccall as a code owner May 29, 2025 21:40
@nate-chandler nate-chandler merged commit b8b13d8 into swiftlang:main May 29, 2025
5 checks passed
@nate-chandler nate-chandler deleted the bug/20250528/1 branch May 29, 2025 21:40
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
0