Correct procedure checking flag handling, and correct the (bodge) handle of unchecked procedure bodies

This commit is contained in:
gingerBill
2021-08-23 19:24:53 +01:00
parent fe2ad54f60
commit 382ca20916
6 changed files with 58 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool ignore_body)
GB_ASSERT(entity != nullptr);
GB_ASSERT(entity->kind == Entity_Procedure);
if (!entity->Procedure.is_foreign) {
GB_ASSERT(entity->flags |= EntityFlag_ProcBodyChecked);
GB_ASSERT(entity->flags & EntityFlag_ProcBodyChecked);
}
String link_name = {};