mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
fix regressions from previous commit
c49ee9f632 broke the tests
and this fixes them
This commit is contained in:
1 parent
f464fe14f4
commit
249cb2aa30
1 file changed
+3
-3
+3
-3
@@ -7526,6 +7526,7 @@ static TypeTableEntry *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_nod
|
||||
|
||||
if (prev_type->id == TypeTableEntryIdUnreachable) {
|
||||
prev_inst = cur_inst;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (cur_type->id == TypeTableEntryIdUnreachable) {
|
||||
@@ -7574,12 +7575,11 @@ static TypeTableEntry *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_nod
|
||||
continue;
|
||||
}
|
||||
|
||||
if (prev_type->id == TypeTableEntryIdFloat &&
|
||||
cur_type->id == TypeTableEntryIdFloat)
|
||||
{
|
||||
if (prev_type->id == TypeTableEntryIdFloat && cur_type->id == TypeTableEntryIdFloat) {
|
||||
if (cur_type->data.floating.bit_count > prev_type->data.floating.bit_count) {
|
||||
prev_inst = cur_inst;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (prev_type->id == TypeTableEntryIdErrorUnion &&
|
||||
|
||||
Reference in new issue
Block a user