partially fix parseh command

This commit is contained in:
Andrew Kelley
2017-01-10 15:39:52 -05:00
parent 8d27a02705
commit 430e33b869
8 changed files with 102 additions and 21 deletions

View File

@@ -5031,7 +5031,8 @@ static IrInstruction *ir_gen_container_decl(IrBuilder *irb, Scope *parent_scope,
TldContainer *tld_container = allocate<TldContainer>(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));
TypeTableEntry *container_type = get_partial_container_type(irb->codegen, parent_scope, kind, node, buf_ptr(name),
node->data.container_decl.is_extern);
ScopeDecls *child_scope = get_container_scope(container_type);
tld_container->type_entry = container_type;