about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2024-10-27 09:30:46 +0300
committerklensy <klensy@users.noreply.github.com>2024-10-29 00:47:20 +0300
commit17636374de757aab8e1f83ef1bcce12a6a46078b (patch)
treee849943c92132387db6e6fe611f83bd9e125f4dd /compiler/rustc_codegen_llvm/src/llvm
parentbe33e4f3d6ead2de92601fc434929764b5626741 (diff)
downloadrust-17636374de757aab8e1f83ef1bcce12a6a46078b.tar.gz
rust-17636374de757aab8e1f83ef1bcce12a6a46078b.zip
correct LLVMRustCreateThinLTOData arg types
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index acc66076833..30e97580844 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2385,9 +2385,9 @@ unsafe extern "C" {
     pub fn LLVMRustThinLTOBufferThinLinkDataLen(M: &ThinLTOBuffer) -> size_t;
     pub fn LLVMRustCreateThinLTOData(
         Modules: *const ThinLTOModule,
-        NumModules: c_uint,
+        NumModules: size_t,
         PreservedSymbols: *const *const c_char,
-        PreservedSymbolsLen: c_uint,
+        PreservedSymbolsLen: size_t,
     ) -> Option<&'static mut ThinLTOData>;
     pub fn LLVMRustPrepareThinLTORename(
         Data: &ThinLTOData,