[llvm-commits] llvm-gcc aggregate copy

Duncan Sands baldrick at free.fr
Wed May 28 08:31:21 PDT 2008


A more sophisticated example:

struct A { int a[1024]; };
struct B { int x; struct A y; };
union C { struct A x; struct B y; };
void g(struct A* a, struct A* b) { *a = *b; }
union C u;
main(void) { g(&u.x, &u.y.y); }

Ciao,

Duncan.



More information about the llvm-commits mailing list