Skip to content

Conversation

@adrian-prantl
Copy link
Contributor

@adrian-prantl adrian-prantl commented Dec 19, 2025

We got LLDB crash logs where importer is dereferenced. In the same crash log the parent frame correctly checks for nullptr, so this would fix the immediate crash. In LLDB it is not guaranteed that a ClangImporter is installed at all times.

rdar://166224928

@adrian-prantl adrian-prantl requested a review from xymus as a code owner December 19, 2025 23:19
@adrian-prantl
Copy link
Contributor Author

@swift-ci test

We got LLDB crash logs where `importer` is dereferenced. In the same crash log
the parent frame correctly checks for nullptr, so this would fix the immediate
crash. In LLDB it is not guaranteed that a ClangImporter is installed at all
times.
Ideally this function should be converted to return `llvm::Expected<ModuleDecl &>`.

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

@swift-ci test

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.

1 participant