| ... | ... | @@ -6734,8 +6734,6 @@ static bool const_values_equal_array(CodeGen *g, ZigValue *a, ZigValue *b, size_ |
| 6734 | 6734 | |
| 6735 | 6735 | bool const_values_equal(CodeGen *g, ZigValue *a, ZigValue *b) { |
| 6736 | 6736 | if (a->type->id != b->type->id) return false; |
| 6737 | | assert(a->special == ConstValSpecialStatic); |
| 6738 | | assert(b->special == ConstValSpecialStatic); |
| 6739 | 6737 | if (a->type == b->type) { |
| 6740 | 6738 | switch (type_has_one_possible_value(g, a->type)) { |
| 6741 | 6739 | case OnePossibleValueInvalid: |
| ... | ... | @@ -6746,6 +6744,11 @@ bool const_values_equal(CodeGen *g, ZigValue *a, ZigValue *b) { |
| 6746 | 6744 | return true; |
| 6747 | 6745 | } |
| 6748 | 6746 | } |
| 6747 | if (a->special == ConstValSpecialUndef || b->special == ConstValSpecialUndef) { |
| 6748 | return a->special == b->special; |
| 6749 | } |
| 6750 | assert(a->special == ConstValSpecialStatic); |
| 6751 | assert(b->special == ConstValSpecialStatic); |
| 6749 | 6752 | switch (a->type->id) { |
| 6750 | 6753 | case ZigTypeIdOpaque: |
| 6751 | 6754 | zig_unreachable(); |