From 4e28d7a5f7d6346acc42a7524dd77fa5f9322029 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 17 Nov 2019 02:46:44 +1100 Subject: fix bug on empty error union --- src/ir.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index d50229925c..7bca551852 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8128,7 +8128,6 @@ static ZigType *get_error_set_union(CodeGen *g, ErrorTableEntry **errors, ZigTyp } } assert(index == count); - assert(count != 0); if (type_name == nullptr) { buf_appendf(&err_set_type->name, "}"); -- cgit v1.2.3