[llvm-commits] RFC: initial union syntax support
Frits van Bommel
fvbommel at wxs.nl
Thu May 21 01:15:53 PDT 2009
Nick Lewycky wrote:
> Duncan Sands wrote:
>> another possibility is to not introduce new union types, but instead
>> to enhance the alloca instruction to take a list of types : it would
>> then allocate enough memory for all of the types in the list. The
>> return type could be that of the first type in the list.
>
> That's only good for stack variables. It doesn't work for globals.
Or unions that are struct members...
More information about the llvm-commits
mailing list