diff options
| author | gingerBill <bill@gingerbill.org> | 2023-02-26 13:52:02 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-02-26 13:52:02 +0000 |
| commit | a53bff5645252323fd31d84bffca876059bff129 (patch) | |
| tree | 40578653fecd400e89de1b9ed3bec780f52a2456 /src/check_type.cpp | |
| parent | a9182cfd8cf9dd8cec125221e39c0fcd7a3fd3e3 (diff) | |
Fix typed `#caller_location` bug.
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 24ca8628e..fabbe54c4 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1309,6 +1309,8 @@ gb_internal ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_ init_core_source_code_location(ctx->checker); param_value.kind = ParameterValue_Location; o.type = t_source_code_location; + o.mode = Addressing_Value; + o.expr = expr; if (in_type) { check_assignment(ctx, &o, in_type, str_lit("parameter value")); |