diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-07-09 09:12:42 +0000 | 
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-07-14 08:27:08 +0000 | 
| commit | d3d51b4fdbd6854da015f501e6566ca17cb023e5 (patch) | |
| tree | 271231c470dfbd497780f427750266ee898992dd /compiler/rustc_codegen_llvm/src/declare.rs | |
| parent | ad635e5d0696076b4412dd7db7b7e8c0867d6e0c (diff) | |
| download | rust-d3d51b4fdbd6854da015f501e6566ca17cb023e5.tar.gz rust-d3d51b4fdbd6854da015f501e6566ca17cb023e5.zip | |
Avoid a bunch of unnecessary `unsafe` blocks in cg_llvm
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/declare.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/declare.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/declare.rs b/compiler/rustc_codegen_llvm/src/declare.rs index 2419ec1f888..710032c774b 100644 --- a/compiler/rustc_codegen_llvm/src/declare.rs +++ b/compiler/rustc_codegen_llvm/src/declare.rs @@ -49,7 +49,7 @@ pub(crate) fn declare_simple_fn<'ll>( }; llvm::SetFunctionCallConv(llfn, callconv); - llvm::SetUnnamedAddress(llfn, unnamed); + llvm::set_unnamed_address(llfn, unnamed); llvm::set_visibility(llfn, visibility); llfn | 
