mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Merge pull request #3616 from rtfeldman/i3614
Compile branches in the presence of degenerate patterns
This commit is contained in:
commit
d212dffa1a
14 changed files with 210 additions and 66 deletions
|
@ -272,7 +272,12 @@ fn create_llvm_module<'a>(
|
|||
// Uncomment this to see the module's optimized LLVM instruction output:
|
||||
// env.module.print_to_stderr();
|
||||
|
||||
(main_fn_name, delayed_errors.join("\n"), env.module)
|
||||
let delayed_errors = if config.ignore_problems {
|
||||
String::new()
|
||||
} else {
|
||||
delayed_errors.join("\n")
|
||||
};
|
||||
(main_fn_name, delayed_errors, env.module)
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue