Unverified Commit c2fba6df authored by Koakuma's avatar Koakuma Committed by GitHub
Browse files

[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
parent 95e307ca
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment