Minor improvement to multi return value reducing stack usage

This commit is contained in:
gingerBill
2022-11-13 22:55:32 +00:00
parent 7dfbda58d9
commit a705a2e38b
6 changed files with 90 additions and 19 deletions

View File

@@ -6739,6 +6739,9 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr
if (initial_entity != nullptr && initial_entity->kind == Entity_Procedure) {
if (initial_entity->Procedure.deferred_procedure.entity != nullptr) {
call->viral_state_flags |= ViralStateFlag_ContainsDeferredProcedure;
if (c->decl != nullptr) {
c->decl->defer_use_count += 1;
}
}
}