Skip to content
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

[BOLT][NFC] Propagate BOLTErrors from Core, RewriteInstance, and passes (2/2) #81523

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Feb 12, 2024

As part of the effort to refactor old error handling code that
would directly call exit(1), in this patch continue the migration
on libCore, libRewrite and libPasses to use the new BOLTError
class whenever a failure occurs.

Test Plan: NFC

Co-authored-by: Rafael Auler rafaelauler@fb.com

@aaupov aaupov marked this pull request as draft February 12, 2024 20:14
Created using spr 1.3.4
@aaupov aaupov changed the title [BOLT] Propagate BOLTErrors from Core, RewriteInstance, and passes (2/n) [BOLT] Propagate BOLTErrors from Core, RewriteInstance, and passes (2/2) Feb 12, 2024
@aaupov aaupov marked this pull request as ready for review February 12, 2024 21:01
Copy link
Contributor

@rafaelauler rafaelauler left a comment

Choose a reason for hiding this comment

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

Thanks, as commit message:

As part of the effort to refactor old error handling code that
would directly call exit(1), in this patch continue the migration
on libCore, libRewrite and libPasses to use the new BOLTError
class whenever a failure occurs.

Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
@aaupov aaupov changed the base branch from users/aaupov/spr/main.bolt-propagate-bolterrors-from-core-rewriteinstance-and-passes-2n to main February 12, 2024 22:40
@aaupov aaupov changed the title [BOLT] Propagate BOLTErrors from Core, RewriteInstance, and passes (2/2) [BOLT][NFC] Propagate BOLTErrors from Core, RewriteInstance, and passes (2/2) Feb 12, 2024
@aaupov aaupov merged commit 13d60ce into main Feb 12, 2024
4 of 5 checks passed
@aaupov aaupov deleted the users/aaupov/spr/bolt-propagate-bolterrors-from-core-rewriteinstance-and-passes-2n branch February 12, 2024 22:51
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.

None yet

2 participants