Don't send delayed errors if we're told to ignore problems

This commit is contained in:
Ayaz Hafiz 2022-07-22 16:51:29 -04:00
parent 53e7a41f27
commit ee516eaa2f
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -267,7 +267,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)]