rust/compiler/rustc_codegen_llvm/src
bors 05abce5d05 Auto merge of #146059 - folkertdev:va-end-lifetime, r=saethlin
explicitly end the lifetime of `va_list`

tracking issue: https://github.com/rust-lang/rust/issues/44930
split out from: https://github.com/rust-lang/rust/pull/144549

The `va_list` is created in the compiler itself when the variable argument list `...` is desugared, and hence the lifetime end is not inserted automatically. The value can't outlive the function in which it was created, so it is correct to end the lifetime here. Ending the lifetime explicitly also appears to give slightly better codegen in https://github.com/rust-lang/rust/pull/144549.

I also included a little drive-by improvement to not cast pointers to integers and back again.

r? codegen
2025-09-02 01:12:13 +00:00
..
back Update to ar_archive_writer 0.5.1 2025-08-29 16:37:42 -07:00
builder Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
coverageinfo coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
debuginfo compiler: Include span of too huge enum with -Cdebuginfo=2 2025-08-28 20:37:09 +02:00
llvm Update to ar_archive_writer 0.5.1 2025-08-29 16:37:42 -07:00
abi.rs Use captures(address) instead of captures(none) for indirect args 2025-08-26 16:16:23 +02:00
allocator.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
asm.rs Replace the llvm::Bool typedef with a proper newtype 2025-08-24 23:09:54 +10:00
attributes.rs Auto merge of #144086 - clubby789:alloc-zeroed, r=nikic 2025-08-20 17:16:34 +00:00
base.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
builder.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
callee.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
common.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
consts.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
context.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
declare.rs make more builder functions generic 2025-07-18 16:23:54 -07:00
errors.rs Use the object crate rather than LLVM for extracting bitcode sections 2025-07-25 11:21:28 +00:00
intrinsic.rs remove an as cast in prefetch codegen 2025-08-21 11:28:10 +02:00
lib.rs Directly raise fatal errors inside the codegen backends 2025-08-24 11:20:41 +00:00
llvm_util.rs Rollup merge of #145076 - ZhongyaoChen:feature/add-tier3-riscv64a23-target, r=davidtwco 2025-08-26 16:34:10 +02:00
mono_item.rs Replace the llvm::Bool typedef with a proper newtype 2025-08-24 23:09:54 +10:00
type_.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
type_of.rs rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
va_arg.rs round pointer to alignment without going via int 2025-08-31 16:07:28 +02:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00