Skip to content

[Cherry-pick into stable/20230725] Avoid a potential exit(1) in LLVMContext::diagnose() (#84992) #8392

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

adrian-prantl
Copy link

commit c3eccf03b365a705bc8dc043217478a82bc37a4d
Author: Adrian Prantl <[email protected]>
Date:   Wed Mar 13 08:53:13 2024 -0700

    Avoid a potential exit(1) in LLVMContext::diagnose()  (#84992)
    
    by handling *all* errors in IRExecDiagnosticHandler. The function that
    call this handles all unhandled errors with an `exit(1)`.
    
    rdar://124459751
    
    I don't really have a testcase for this, since the crash report I got
    for this involved the Swift language plugin.

by handling *all* errors in IRExecDiagnosticHandler. The function that
call this handles all unhandled errors with an `exit(1)`.

rdar://124459751

I don't really have a testcase for this, since the crash report I got
for this involved the Swift language plugin.

(cherry picked from commit c3eccf0)
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 999064a into swiftlang:stable/20230725 Mar 14, 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.

1 participant