diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-23 12:56:41 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-23 12:56:41 -0500 |
| commit | 9cfd7dea19c4c54e2754119c04c06cd57cfb759d (patch) | |
| tree | 3b7950d86f77467b43aa323f80563f678cf6d2fb /src/codegen.cpp | |
| parent | 78bc62fd3415dc1db72c916075c9956fdec407aa (diff) | |
| parent | b66547e98c9034e52c5647735b47dc24939c8d15 (diff) | |
| download | zig-9cfd7dea19c4c54e2754119c04c06cd57cfb759d.tar.gz zig-9cfd7dea19c4c54e2754119c04c06cd57cfb759d.zip | |
Merge remote-tracking branch 'origin/master' into llvm6
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 4f100d75ad..15648cbdec 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -4201,6 +4201,7 @@ static LLVMValueRef gen_const_val(CodeGen *g, ConstExprValue *const_val, const c continue; } ConstExprValue *field_val = &const_val->data.x_struct.fields[i]; + assert(field_val->type != nullptr); LLVMValueRef val = gen_const_val(g, field_val, ""); fields[type_struct_field->gen_index] = val; make_unnamed_struct = make_unnamed_struct || is_llvm_value_unnamed_type(field_val->type, val); @@ -4373,6 +4374,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; |
