Fix alignment for normal structures to match LLVM

This commit is contained in:
Ginger Bill
2017-05-10 22:51:35 +01:00
parent c6d531df95
commit 87f1a62ca4
5 changed files with 20 additions and 27 deletions
+4 -3
View File
@@ -1797,7 +1797,6 @@ void check_import_entities(Checker *c, MapScope *file_scopes) {
}
}
if (!previously_added) {
array_add(&parent_scope->imported, scope);
} else {
@@ -1813,19 +1812,21 @@ void check_import_entities(Checker *c, MapScope *file_scopes) {
if (e->scope == parent_scope) {
continue;
}
if (!is_entity_kind_exported(e->kind)) {
continue;
}
if (id->is_import) {
if (is_entity_exported(e)) {
// TODO(bill): Should these entities be imported but cause an error when used?
bool ok = add_entity(c, parent_scope, NULL, e);
bool ok = add_entity(c, parent_scope, e->identifier, e);
if (ok) {
map_bool_set(&parent_scope->implicit, hash_pointer(e), true);
}
}
} else {
add_entity(c, parent_scope, NULL, e);
add_entity(c, parent_scope, e->identifier, e);
}
}
} else {