unions with only Abi::Scalar fields should get Abi::Scalar themselves #114383
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider these types:
The first two are getting scalar ABI, but the last one is an aggregate. (As shown by this debug output.)
It seems reasonable to also give the last union Scalar ABI, no? Of course it should be
Scalar::Union
, but still.@scottmcm ran into this in #113344.
Cc @eddyb @oli-obk (as usual for layout issues ;)
The text was updated successfully, but these errors were encountered: