diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-05 23:27:18 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-05 23:27:18 +0000 |
| commit | 001b48a5c61bf56ddf499f6a155b41bc1620e621 (patch) | |
| tree | 3af649b25af79e36b5683b0bd18c80486b9c8b34 /src/ir.cpp | |
| parent | 54929a1b9212fb5b2723efde1d3c871dc4a7c4d3 (diff) | |
Change local variable alignment to 16 bytes for the time being
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index fdb73926c..eb9ba8979 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -905,7 +905,9 @@ irValue *ir_instr_local(irProcedure *p, Entity *e, bool zero_initialized) { i->Local.entity = e; i->Local.type = make_type_pointer(p->module->allocator, e->type); i->Local.zero_initialized = zero_initialized; - i->Local.alignment = type_align_of(p->module->allocator, e->type); + // i->Local.alignment = type_align_of(p->module->allocator, e->type); + // TODO(bill): determine the correct alignment + i->Local.alignment = gb_max(16, type_align_of(p->module->allocator, e->type)); array_init(&i->Local.referrers, heap_allocator()); // TODO(bill): Replace heap allocator here ir_module_add_value(p->module, e, v); return v; |