about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-11-02 11:44:15 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-11-02 23:39:29 +1100
commit0fa86f966062a66f46b6471310d07e00b701e398 (patch)
tree79f6a0f115189673fbe297077cd0c19075670ef2 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent36040aacc225c922388a98e74b53222d606b4c9f (diff)
downloadrust-0fa86f966062a66f46b6471310d07e00b701e398.tar.gz
rust-0fa86f966062a66f46b6471310d07e00b701e398.zip
Use a dedicated safe wrapper for `LLVMRustGetHostCPUName`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 5fad7583e1a..0c0e3b92e59 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2204,7 +2204,7 @@ unsafe extern "C" {
         Desc: &mut *const c_char,
     );
 
-    pub fn LLVMRustGetHostCPUName(len: *mut usize) -> *const c_char;
+    pub fn LLVMRustGetHostCPUName(LenOut: &mut size_t) -> *const u8;
 
     // This function makes copies of pointed to data, so the data's lifetime may end after this
     // function returns.