From 71d335e5ccc5c7c37ac40debf78ad3aa096b22d3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 3 Feb 2017 11:39:24 -0500 Subject: implement packed structs closes #183 --- src/ir.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index bf85a20f7a..573e4cefad 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -5283,8 +5283,9 @@ static IrInstruction *ir_gen_container_decl(IrBuilder *irb, Scope *parent_scope, TldContainer *tld_container = allocate(1); init_tld(&tld_container->base, TldIdContainer, name, visib_mod, node, parent_scope); - TypeTableEntry *container_type = get_partial_container_type(irb->codegen, parent_scope, kind, node, buf_ptr(name), - node->data.container_decl.is_extern); + ContainerLayout layout = node->data.container_decl.layout; + TypeTableEntry *container_type = get_partial_container_type(irb->codegen, parent_scope, + kind, node, buf_ptr(name), layout); ScopeDecls *child_scope = get_container_scope(container_type); tld_container->type_entry = container_type; -- cgit v1.2.3