From cbbd6cfa1e85dc5cda38572f7a1d462a678c2adf Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 15 Feb 2018 23:39:35 -0500 Subject: [PATCH] add an assert to catch #777 asserting is better than segfaulting --- src/codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codegen.cpp b/src/codegen.cpp index 4f100d75ada1fa799e5885c87e9b9132524ed076..00103be259c7c911348e651f122a2f7bda00fd08 100644 --- 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; -- 2.54.0