diff options
| author | gingerBill <bill@gingerbill.org> | 2020-02-23 10:13:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-02-23 10:13:42 +0000 |
| commit | 85e331d5e21ed01feb03efc02cf6517fa9c3a20e (patch) | |
| tree | 915f96b9ce4d211e47e880cb9f117121c5e1d5e4 /src/check_expr.cpp | |
| parent | 81b00c7a3e26b5faf8f149d45c1e63ed431ab2c6 (diff) | |
Fix #566
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 52c1f38b7..722acaa24 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -5942,7 +5942,9 @@ CALL_ARGUMENT_CHECKER(check_call_arguments_internal) { Entity *e = sig_params[operand_index]; Type *t = e->type; Operand o = operands[operand_index]; - call->viral_state_flags |= o.expr->viral_state_flags; + if (o.expr != nullptr) { + call->viral_state_flags |= o.expr->viral_state_flags; + } if (e->kind == Entity_TypeName) { // GB_ASSERT(!variadic); |