mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 05:34:59 -07:00
Fix and clean up default procedure parameter code for non-constant types
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user