Fix and clean up default procedure parameter code for non-constant types

This commit is contained in:
gingerBill
2020-09-22 12:06:05 +01:00
parent 20e4548999
commit 609af3a651
6 changed files with 82 additions and 108 deletions
+1
View File
@@ -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;
}