aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorJooperGH <alexandredmfs@gmail.com>2022-12-19 11:46:35 +0000
committerJooperGH <alexandredmfs@gmail.com>2022-12-19 11:46:35 +0000
commit4a70265bfb2a7205e80b527eb46fa4558114ad93 (patch)
treeca8c2931e2699427fef1fb48920dc732f61ad340 /src/check_expr.cpp
parentde0d86088020df8185a9b1900273d86c7c60596d (diff)
parent0829ac30f743aa567b2da5dc490ff1b2b13ea37c (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin into more_dwmapi_bindings
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index c7585b51c..9846199f8 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -6763,6 +6763,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) {
+ c->decl->defer_used += 1;
+ }
}
}