Localize checker data

This commit is contained in:
gingerBill
2017-12-12 20:23:36 +00:00
parent f7e9649be4
commit 054e241033
7 changed files with 95 additions and 112 deletions
+5 -7
View File
@@ -8171,9 +8171,8 @@ void ir_gen_tree(irGen *s) {
bool has_dll_main = false;
bool has_win_main = false;
for_array(i, info->entities.entries) {
auto *entry = &info->entities.entries[i];
Entity *e = cast(Entity *)entry->key.ptr;
for_array(i, info->entities) {
Entity *e = info->entities[i];
String name = e->token.string;
if (e->kind == Entity_Variable) {
global_variable_max_count++;
@@ -8283,11 +8282,10 @@ void ir_gen_tree(irGen *s) {
}
}
for_array(i, info->entities.entries) {
auto * entry = &info->entities.entries[i];
Entity * e = cast(Entity *)entry->key.ptr;
for_array(i, info->entities) {
Entity * e = info->entities[i];
String name = e->token.string;
DeclInfo *decl = entry->value;
DeclInfo *decl = e->decl_info;
Scope * scope = e->scope;
if (!scope->is_file) {