diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-11 17:00:49 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-11 17:00:49 +0200 |
| commit | e3f375afd8e1c08c82818d7132296c277d871436 (patch) | |
| tree | cd8744271133acbb47c12c9ac418bf12c295d364 /src/types.cpp | |
| parent | 8a67221bd4e707286b69a9b00a36ff70a4251c85 (diff) | |
fix c_vararg bit_set
Fixes #4051
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/types.cpp b/src/types.cpp index da5099d22..21dd6ad39 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2960,10 +2960,7 @@ gb_internal Type *c_vararg_promote_type(Type *type) { GB_ASSERT(type != nullptr); Type *core = core_type(type); - - if (core->kind == Type_BitSet) { - core = core_type(bit_set_to_int(core)); - } + GB_ASSERT(core->kind != Type_BitSet); if (core->kind == Type_Basic) { switch (core->Basic.kind) { |