commit cbbd6cfa1e85dc5cda38572f7a1d462a678c2adf (tree)
parent 5f5880979e8c5a7cfa4efdabad6358ceb89cc0e7
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Thu, 15 Feb 2018 23:39:35 -0500
add an assert to catch #777
asserting is better than segfaulting
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/codegen.cpp b/src/codegen.cpp
@@ -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;