Hi Dale,

> Treat struct { long long: 29; }; as int sized and
> aligned, rather than long long.  ABI issue.

if you look at the DECL_SIZE of the bitfield, rather than
the type size, I think it gives you 29.  If so, DECL_SIZE
should simplify things for you.  In fact as far as I can
see you should never use the type size for a record field.
For example the struct conversion stuff uses DECL_SIZE everywhere
(except at one point in the field indexing - I have a patch to fix
that which I'll apply at some point).  Not using the type size
makes all these "it's a big type shoved in a small place" problems
magically go away.

Ciao,

Duncan.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to