summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-16 22:45:09 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-16 22:45:09 -0400
commit994d0ecb8ed4f5f78801669a607dad572c0d93a1 (patch)
tree4ecb7ba48fa35a5f273ff4e19a62b9a655134d3b /6/asm.h
parent4989e1b4e1184e1241c01d7d6f31a073d5a52a20 (diff)
downloadmc-994d0ecb8ed4f5f78801669a607dad572c0d93a1.tar.gz
Fix alignment on structs.
We were aligning big aggregates to 8, instead of to their most strict member. Oops.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/asm.h b/6/asm.h
index 6b01e26..e631ede 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -230,5 +230,5 @@ int floatnode(Node *n);
void breakhere();
void dumpasm(Isel *s, FILE *fd);
-size_t tyalign(size_t sz, size_t eltsz);
+size_t alignto(size_t sz, Type *t);