From 249cb2aa30bbdd0c30f24ef18097e3b1cd3e0da5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 5 Dec 2017 22:39:36 -0500 Subject: [PATCH] fix regressions from previous commit c49ee9f632dd5ee7f341e9093234f39c19a32115 broke the tests and this fixes them --- src/ir.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ir.cpp b/src/ir.cpp index 6cd8b678c..43ea16c97 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -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 &&