Skip to content

[Debug Info] Prevent infinite recursion when emitting debug info #79929

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 2 commits into from
Mar 13, 2025

Conversation

adrian-prantl
Copy link
Contributor

for recursive classes. This is achieved by treating types created with
DebugTypeInfo::createFrowardDecl() as unconditional forward
declarations when emitting debug info instead of applying a heuristic
to determine this.

rdar://146688269

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/llvm-project#10235
@swift-ci test

@slavapestov
Copy link
Contributor

Can you add a test case?

for recursive classes. This is achieved by treating types created with
DebugTypeInfo::createFrowardDecl() as unconditional forward
declarations when emitting debug info instead of applying a heuristic
to determine this.

rdar://146688269
@adrian-prantl
Copy link
Contributor Author

Can you add a test case?

Forgot to git-add it...

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/llvm-project#10235
@swift-ci test

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/llvm-project#10235
@swift-ci test linux

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/llvm-project#10235
@swift-ci test

@adrian-prantl adrian-prantl merged commit 6e9faa1 into swiftlang:main Mar 13, 2025
5 checks passed
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