mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 18:32:22 -07:00
Allow undefined --- as a struct field default value.
This commit is contained in:
@@ -671,6 +671,8 @@ bool ir_type_has_default_values(Type *t) {
|
||||
continue;
|
||||
} else if (f->Variable.default_value.kind != ExactValue_Invalid) {
|
||||
return true;
|
||||
} else if (f->Variable.default_is_undef) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user