Commit cbbd6cfa1e

Andrew Kelley <superjoe30@gmail.com>
2018-02-16 05:39:35
add an assert to catch #777
asserting is better than segfaulting
1 parent 5f58809
Changed files (1)
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;