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/parseh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parseh.cpp') diff --git a/src/parseh.cpp b/src/parseh.cpp index aeadf2ae75..dcd34d342d 100644 --- a/src/parseh.cpp +++ b/src/parseh.cpp @@ -687,7 +687,7 @@ static TypeTableEntry *resolve_enum_decl(Context *c, const EnumDecl *enum_decl) const EnumDecl *enum_def = enum_decl->getDefinition(); if (!enum_def) { TypeTableEntry *enum_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, - ContainerKindEnum, c->source_node, buf_ptr(full_type_name)); + ContainerKindEnum, c->source_node, buf_ptr(full_type_name), true); enum_type->data.enumeration.zero_bits_known = true; c->enum_type_table.put(bare_name, enum_type); c->decl_table.put(enum_decl, enum_type); @@ -712,7 +712,7 @@ static TypeTableEntry *resolve_enum_decl(Context *c, const EnumDecl *enum_decl) if (pure_enum) { TypeTableEntry *enum_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, - ContainerKindEnum, c->source_node, buf_ptr(full_type_name)); + ContainerKindEnum, c->source_node, buf_ptr(full_type_name), true); c->enum_type_table.put(bare_name, enum_type); c->decl_table.put(enum_decl, enum_type); @@ -852,7 +852,7 @@ static TypeTableEntry *resolve_record_decl(Context *c, const RecordDecl *record_ TypeTableEntry *struct_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, - ContainerKindStruct, c->source_node, buf_ptr(full_type_name)); + ContainerKindStruct, c->source_node, buf_ptr(full_type_name), true); struct_type->data.structure.zero_bits_known = true; c->struct_type_table.put(bare_name, struct_type); -- cgit v1.2.3