mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Short circuit for #raw_union in signature_parameter_similar_enough
This commit is contained in:
@@ -870,6 +870,9 @@ gb_internal bool signature_parameter_similar_enough(Type *x, Type *y) {
|
|||||||
// NOTE(bill): this must be changed when ABI changes
|
// NOTE(bill): this must be changed when ABI changes
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (x_base->Struct.is_raw_union) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (x->Struct.fields.count == y->Struct.fields.count) {
|
if (x->Struct.fields.count == y->Struct.fields.count) {
|
||||||
for (isize i = 0; i < x->Struct.fields.count; i++) {
|
for (isize i = 0; i < x->Struct.fields.count; i++) {
|
||||||
Entity *a = x->Struct.fields[i];
|
Entity *a = x->Struct.fields[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user