From 430e33b869b004ca24faee2dfa9e51aa4e94093f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 10 Jan 2017 15:39:52 -0500 Subject: partially fix parseh command --- src/ir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index b4475499d3..ad589b8294 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -5031,7 +5031,8 @@ 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)); + 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; -- cgit v1.2.3