1
Fork 0

correct LLVMRustCreateThinLTOData arg types

This commit is contained in:
klensy 2024-10-27 09:30:46 +03:00
parent be33e4f3d6
commit 17636374de
3 changed files with 8 additions and 8 deletions

View file

@ -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))?;