diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-15 23:39:35 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-15 23:39:35 -0500 |
| commit | cbbd6cfa1e85dc5cda38572f7a1d462a678c2adf (patch) | |
| tree | 64ccba9c61fcccec6ce824db1f646b9b3ef0875b /src/codegen.cpp | |
| parent | 5f5880979e8c5a7cfa4efdabad6358ceb89cc0e7 (diff) | |
| download | zig-cbbd6cfa1e85dc5cda38572f7a1d462a678c2adf.tar.gz zig-cbbd6cfa1e85dc5cda38572f7a1d462a678c2adf.zip | |
add an assert to catch #777
asserting is better than segfaulting
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 4f100d75ad..00103be259 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; |
