about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
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/back
parentbe33e4f3d6ead2de92601fc434929764b5626741 (diff)
downloadrust-17636374de757aab8e1f83ef1bcce12a6a46078b.tar.gz
rust-17636374de757aab8e1f83ef1bcce12a6a46078b.zip
correct LLVMRustCreateThinLTOData arg types
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index 1f7a923dd2c..043357d6c4e 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -502,9 +502,9 @@ fn thin_lto(
         // upstream...
         let data = llvm::LLVMRustCreateThinLTOData(
             thin_modules.as_ptr(),
-            thin_modules.len() as u32,
+            thin_modules.len(),
             symbols_below_threshold.as_ptr(),
-            symbols_below_threshold.len() as u32,
+            symbols_below_threshold.len(),
         )
         .ok_or_else(|| write::llvm_err(dcx, LlvmError::PrepareThinLtoContext))?;