diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2022-12-07 11:42:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 11:42:23 +0000 |
| commit | a5bdb4a8e85f955ea660bd66b2c1c5990ab46c03 (patch) | |
| tree | 9cc0fe9c6a7b7cd4728bafc21b5252372d131d52 /src/check_expr.cpp | |
| parent | 521ed286321a30e5742a432effefb2c98b9484a7 (diff) | |
| parent | d88b052d2d9aa8fa012be314bd29d7ae311fc941 (diff) | |
Merge pull request #2208 from odin-lang/multiple-return-abi-experiment
Multiple Return ABI Changes and Improvements
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 3 |
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; + } } } |