mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #5732 from harold-b/hb.preempt-field-check-sig-similar-enough
Preempt field checking on `signature_parameter_similar_enough` with a type ptr equality check
This commit is contained in:
@@ -853,6 +853,11 @@ gb_internal bool signature_parameter_similar_enough(Type *x, Type *y) {
|
|||||||
|
|
||||||
Type *x_base = base_type(x);
|
Type *x_base = base_type(x);
|
||||||
Type *y_base = base_type(y);
|
Type *y_base = base_type(y);
|
||||||
|
|
||||||
|
if (x_base == y_base) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (x_base->kind == y_base->kind &&
|
if (x_base->kind == y_base->kind &&
|
||||||
x_base->kind == Type_Struct) {
|
x_base->kind == Type_Struct) {
|
||||||
i64 xs = type_size_of(x_base);
|
i64 xs = type_size_of(x_base);
|
||||||
|
|||||||
Reference in New Issue
Block a user