Remove unnecessary abort_if_errors from cg_clif

This commit is contained in:
bjorn3 2025-02-06 16:02:44 +00:00
parent 0ea2ce4f6d
commit b0b0b25c9c

View file

@ -209,7 +209,6 @@ impl CodegenBackend for CraneliftCodegenBackend {
metadata: EncodedMetadata,
need_metadata_module: bool,
) -> Box<dyn Any> {
tcx.dcx().abort_if_errors();
info!("codegen crate {}", tcx.crate_name(LOCAL_CRATE));
let config = self.config.clone().unwrap_or_else(|| {
BackendConfig::from_opts(&tcx.sess.opts.cg.llvm_args)