authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-25 21:45:11-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-25 21:45:11-04:00
logb13af0750fbe8b38a95b05ec78c8364281fcf477
tree9520bbe9daa00221d11becc0f3e6848bd91a71b5
parent720302a6407e954ffccf65f38ad40b47868627ce
signaturelock-open Commit is signed but in an unrecognized format.

fix assertion tripped instead of reporting compile error


1 files changed, 2 insertions(+), 1 deletions(-)

src/ir.cpp+2-1
......@@ -9006,7 +9006,8 @@ static bool ir_num_lit_fits_in_other_type(IrAnalyze *ira, IrInstruction *instruc
90069006 }
90079007
90089008 ConstExprValue *const_val = ir_resolve_const(ira, instruction, UndefBad);
9009 assert(const_val != nullptr);
9009 if (const_val == nullptr)
9010 return false;
90109011
90119012 bool const_val_is_int = (const_val->type->id == ZigTypeIdInt || const_val->type->id == ZigTypeIdComptimeInt);
90129013 bool const_val_is_float = (const_val->type->id == ZigTypeIdFloat || const_val->type->id == ZigTypeIdComptimeFloat);