]> git.lizzy.rs Git - rust.git/commit
Replace hard-coded field indexes with lookup on aarch64 non-macos.
authorHans Kratz <hans@appfour.com>
Thu, 5 Aug 2021 22:40:32 +0000 (22:40 +0000)
committerHans Kratz <hans@appfour.com>
Thu, 5 Aug 2021 22:40:32 +0000 (22:40 +0000)
commit89a369ad2e367a473385f1363896e03e1e390718
treed032925540dcfbb0ff891007e28c213ef1dd184a
parent4a4e9e3cf81e8c85880d8da521ab16f253c93392
Replace hard-coded field indexes with lookup on aarch64 non-macos.

The indexes into the VaListImpl struct used on aarch64 ABI (not macos/ios) are hard-coded which is brittle so we replace them with the usual lookup.

The varargs ffi is tested in ui/abi/variadic-ffi.rs on aarch64 Linux.
compiler/rustc_codegen_llvm/src/va_arg.rs