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
+2
View File
@@ -81,6 +81,7 @@ enum ParameterValueKind {
struct ParameterValue {
ParameterValueKind kind;
Ast *original_ast_expr;
union {
ExactValue value;
Ast *ast_value;
@@ -126,6 +127,7 @@ struct Entity {
i32 field_src_index;
ParameterValue param_value;
Ast * param_expr;
String thread_local_model;
Entity * foreign_library;