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

Fix a regression and refactor some functions to a better location #79

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

tim-hoffman
Copy link

@tim-hoffman tim-hoffman commented Dec 8, 2023

  1. Fix regression introduced when converting panics to meaningful error messages. There was one location where the panic was caught and ignored so a Result::Err should have also been ignored in that location but was not.
  2. Move helper functions for creating error messages into the error.rs file instead of the module file for the interpreter.

The error result in this case should not have been propagated up the call stack, just as the old implementation caught the panic instead of letting it crash the program.
Copy link

@iangneal iangneal left a comment

Choose a reason for hiding this comment

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

LGTM!

@tim-hoffman tim-hoffman merged commit 4a080f9 into llvm Dec 8, 2023
3 checks passed
@tim-hoffman tim-hoffman deleted the th/regression branch April 3, 2024 17: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.

2 participants