From b7858a66b94e87830c0c777547c4f411c4d8d259 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 28 May 2018 12:06:50 +0100 Subject: Parallelize per file rather than per package --- src/check_decl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 7a85175d8..64f59269d 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -534,7 +534,7 @@ void check_proc_decl(Checker *c, Entity *e, DeclInfo *d) { e->deprecated_message = ac.deprecated_message; ac.link_name = handle_link_name(c, e->token, ac.link_name, ac.link_prefix); - if (e->package != nullptr && e->token.string == "main") { + if (e->pkg != nullptr && e->token.string == "main") { if (pt->param_count != 0 || pt->result_count != 0) { gbString str = type_to_string(proc_type); @@ -546,7 +546,7 @@ void check_proc_decl(Checker *c, Entity *e, DeclInfo *d) { error(e->token, "Procedure 'main' cannot have a custom calling convention"); } pt->calling_convention = ProcCC_Contextless; - if (e->package->kind == Package_Init) { + if (e->pkg->kind == Package_Init) { if (c->info.entry_point != nullptr) { error(e->token, "Redeclaration of the entry pointer procedure 'main'"); } else { -- cgit v1.2.3