diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-30 10:48:05 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-30 10:48:05 +0100 |
| commit | 4945168e6db97516e9af65a17aec83e3297f0f90 (patch) | |
| tree | 1ca88fe2db006fb129d5dc213fe3d4d07033ae53 /src/check_decl.cpp | |
| parent | 668df4a571cdc376a6a13992364f6debf09f0476 (diff) | |
Short circuit for `#raw_union` in `signature_parameter_similar_enough`
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 779dd6c12..528ff8abe 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -870,6 +870,9 @@ gb_internal bool signature_parameter_similar_enough(Type *x, Type *y) { // NOTE(bill): this must be changed when ABI changes return true; } + if (x_base->Struct.is_raw_union) { + return true; + } if (x->Struct.fields.count == y->Struct.fields.count) { for (isize i = 0; i < x->Struct.fields.count; i++) { Entity *a = x->Struct.fields[i]; |