add an assert to catch #777

asserting is better than segfaulting
This commit is contained in:
Andrew Kelley 2018-02-15 23:39:35 -05:00
parent 5f5880979e
commit cbbd6cfa1e

View File

@ -4373,6 +4373,7 @@ static LLVMValueRef gen_const_val(CodeGen *g, ConstExprValue *const_val, const c
}
}
}
zig_unreachable();
case TypeTableEntryIdErrorUnion:
{
TypeTableEntry *payload_type = type_entry->data.error_union.payload_type;