diff options
author | Koakuma <koachan@protonmail.com> | 2024-05-15 20:49:28 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 20:49:28 +0700 |
commit | c2fba6df944e11e2c9a7073405c6a817fdba14e3 (patch) | |
tree | 01418f62771aebe385ed99afa99ff4abcdec4a3a /llvm/lib/Support/BinaryStreamWriter.cpp | |
parent | 95e307caeb17c080724921564d96e1b8457264bc (diff) | |
download | llvm-c2fba6df944e11e2c9a7073405c6a817fdba14e3.zip llvm-c2fba6df944e11e2c9a7073405c6a817fdba14e3.tar.gz llvm-c2fba6df944e11e2c9a7073405c6a817fdba14e3.tar.bz2 |
[clang][SPARC] Treat empty structs as if it's a one-bit type in the CC (#90338)
Make sure that empty structs are treated as if it has a size of one bit
in function parameters and return types so that it occupies a full
argument and/or return register slot.
This fixes crashes and miscompilations when passing and/or returning
empty structs.
Reviewed by: @s-barannikov
Diffstat (limited to 'llvm/lib/Support/BinaryStreamWriter.cpp')
0 files changed, 0 insertions, 0 deletions