Skip to content

Commit

Permalink
respect parse errors when checking IR some-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzcreek committed Aug 22, 2024
1 parent 23099ac commit 1875413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/frontend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub fn run_frontend(source: &str) -> FrontendResult {
ctx.set_module_name(id, name);
ctx.set_interface(id, check_result.interface.clone());
ctx.set_name_supply(id, check_result.names);
if check_result.errors.is_empty() && check_result.ir.is_none() {
if parse_errors.is_empty() && check_result.errors.is_empty() && check_result.ir.is_none() {
panic!("No IR generated, despite no errors")
};
checked_ids.push(id);
Expand Down

0 comments on commit 1875413

Please sign in to comment.