Correct pseudo selector code generation

This commit is contained in:
gingerBill
2022-02-15 15:16:30 +00:00
parent 753cceea82
commit 0e5928ff39
2 changed files with 8 additions and 7 deletions

View File

@@ -6396,10 +6396,10 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr
return builtin_procs[id].kind;
}
Entity *e = entity_of_node(operand->expr);
Entity *initial_entity = entity_of_node(operand->expr);
if (e != nullptr && e->kind == Entity_Procedure) {
if (e->Procedure.deferred_procedure.entity != nullptr) {
if (initial_entity != nullptr && initial_entity->kind == Entity_Procedure) {
if (initial_entity->Procedure.deferred_procedure.entity != nullptr) {
call->viral_state_flags |= ViralStateFlag_ContainsDeferredProcedure;
}
}