Skip to content

Commit

Permalink
cleanup: remove leftover extra block
Browse files Browse the repository at this point in the history
This was needed in an older version of this patch, but never got edited
out when it became obsolete.
  • Loading branch information
durin42 committed May 22, 2024
1 parent 01c1ffd commit ad0ef0c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_codegen_llvm/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,15 +745,13 @@ pub(crate) unsafe fn codegen(
}

if config.emit_bc || config.emit_obj == EmitObj::Bitcode {
{
let _timer = cgcx.prof.generic_activity_with_arg(
"LLVM_module_codegen_emit_bitcode",
&*module.name,
);
if let Err(err) = fs::write(&bc_out, data) {
dcx.emit_err(WriteBytecode { path: &bc_out, err });
}
}
}

if config.emit_obj == EmitObj::ObjectCode(BitcodeSection::Full) {
Expand Down

0 comments on commit ad0ef0c

Please sign in to comment.