Skip to content

Commit

Permalink
add an assert to catch #777
Browse files Browse the repository at this point in the history
asserting is better than segfaulting
  • Loading branch information
andrewrk committed Feb 16, 2018
1 parent 5f58809 commit cbbd6cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit cbbd6cf

Please sign in to comment.