diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-31 07:38:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-31 07:38:55 +0000 |
| commit | 6630802a1a6f09f9e07ee4113da3414e5e275972 (patch) | |
| tree | ffc6f5b6daffb4d56ff7c1637b508581b27afe2b /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 445a340af3a5feb30022103db51b3fbdf3e0c863 (diff) | |
| parent | b8bd7becb419084397adc6b797136c20046fdacb (diff) | |
| download | rust-6630802a1a6f09f9e07ee4113da3414e5e275972.tar.gz rust-6630802a1a6f09f9e07ee4113da3414e5e275972.zip | |
Merge pull request #4005 from rust-lang/rustup-2024-10-31
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs index 7947c9c8c8e..aef8642f199 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs @@ -72,7 +72,7 @@ pub(crate) fn get_or_insert_gdb_debug_scripts_section_global<'ll>( let section_var = cx .define_global(section_var_name, llvm_type) .unwrap_or_else(|| bug!("symbol `{}` is already defined", section_var_name)); - llvm::LLVMSetSection(section_var, c".debug_gdb_scripts".as_ptr()); + llvm::set_section(section_var, c".debug_gdb_scripts"); llvm::LLVMSetInitializer(section_var, cx.const_bytes(section_contents)); llvm::LLVMSetGlobalConstant(section_var, llvm::True); llvm::LLVMSetUnnamedAddress(section_var, llvm::UnnamedAddr::Global); |
