diff options
| author | Oliver Stannard <oliver.stannard@arm.com> | 2025-01-29 15:02:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-29 15:02:37 +0000 |
| commit | e9c2e0acd747b7b5260cf022233fa9b5336d2d30 (patch) | |
| tree | cb0939a36a34afcc9fb3ad48a1498a0c5b068f74 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 25ae1a266d50f24a8fffc57152d7f3c3fcb65517 (diff) | |
[AArch64] Match GCC behaviour for zero-size structs (#124760)
We had a test claiming that this empty struct type consumes a register
slot when passing it to a function with GCC, but that does not appear to
be the case, at least with GCC versions going back to 4.8.
This also caused a miscompilation when passing one of these structs to a
variadic function, but it turned out that our implementation of `va_arg`
matches GCC's ABI, so the one change fixes both bugs.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
