aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-09-22 12:06:05 +0100
committergingerBill <bill@gingerbill.org>2020-09-22 12:06:05 +0100
commit609af3a6513f0a35823089c090077171e87546c5 (patch)
treef808bbea32d892c73b89a3b5cbb6da7be8dc1a61 /src/check_type.cpp
parent20e4548999c496b1c35067692403b08649cfb391 (diff)
Fix and clean up default procedure parameter code for non-constant types
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 24434dba0..b6dfafcdc 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1370,6 +1370,7 @@ bool is_expr_from_a_parameter(CheckerContext *ctx, Ast *expr) {
ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_type, Type **out_type_, Ast *expr, bool allow_caller_location) {
ParameterValue param_value = {};
+ param_value.original_ast_expr = expr;
if (expr == nullptr) {
return param_value;
}