Skip to content

Commit af22801

Browse files
committed
simplify a self-profiling activity call in the cg_gcc backend
1 parent 3a80067 commit af22801

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_gcc/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_gcc/src/back/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustc_target::spec::SplitDebuginfo;
1111
use crate::{GccCodegenBackend, GccContext};
1212

1313
pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_handler: &Handler, module: ModuleCodegen<GccContext>, config: &ModuleConfig) -> Result<CompiledModule, FatalError> {
14-
let _timer = cgcx.prof.generic_activity_with_arg("LLVM_module_codegen", &module.name[..]);
14+
let _timer = cgcx.prof.generic_activity_with_arg("LLVM_module_codegen", &*module.name);
1515
{
1616
let context = &module.module_llvm.context;
1717

0 commit comments

Comments
 (0)