mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-23 20:58:22 -04:00
Correct pseudo selector code generation
This commit is contained in:
1 parent
753cceea82
commit
0e5928ff39
2 files changed
+8
-7
No files matched your search
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user