Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up[c-ffi,dfmc-back-end] Fix nested structs by value. #846
Conversation
added a commit
that referenced
this pull request
Jan 9, 2015
housel
merged commit d7679c5
into
dylan-lang:master
Jan 9, 2015
waywardmonkeys
deleted the
waywardmonkeys:nested-structs-by-value
branch
Jan 9, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
waywardmonkeys commentedJan 9, 2015
In maybe-claim-heap-element-references-internal, when processing
a raw aggregate type (used for values whose type is a C struct
or union and not a pointer to a struct/union), process the member
types first, if necessary, then the type itself.
This ensures that they're in the heap-referenced-objects list
in the correct order and then emitted in C in the correct order
in emit-typedefs in the C backend. Without doing this, the C
output will be incorrect and compilation will fail.