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

Replace BUG_CHECK with error in bmv2 backend #243

Merged
merged 1 commit into from
Jan 19, 2017
Merged

Conversation

antoninbas
Copy link
Member

As requested in review for PR #234

Copy link
Contributor

@ChrisDodd ChrisDodd left a comment

Choose a reason for hiding this comment

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

This is an unconditional error check, so it will flag an error on every verify call regardless of correctness. There are also still BUG_CHECK calls in retrieveErrorValue. It probably makes most sense to just remove this BUG_CHECK/error and change the ones in retrieveErrorValue to be if (!whatever) error(...

@antoninbas
Copy link
Member Author

My bad, did that too fast. I fixed my commit as you suggested. However, I left the second BUG_CHECK in retrieveErrorValue. AFAIK, this would be an internal compiler error if the second argument of verify did not resolve to Type_Error (it should have been flagged by the frontend / midend).

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.

3 participants