authorgravatar for jhc@dismail.deJimmi Holst Christensen <jhc@dismail.de> 2018-06-05 11:54:11+02:00
committergravatar for jhc@dismail.deJimmi Holst Christensen <jhc@dismail.de> 2018-06-05 11:54:11+02:00
loga8146ade2a57bea12ea2d16bd273f03578e5d559
tree3046287688eeb219464fcb2c2ba1fd34185b1a0c
parent236c680f6bae490fddab4935892bd75240176d0b

Renamed UndefinedLiteral to Undefined


6 files changed, 57 insertions(+), 57 deletions(-)

doc/langref.html.in+4-4
......@@ -4895,7 +4895,7 @@ pub const TypeId = enum {
48954895 Struct,
48964896 ComptimeFloat,
48974897 ComptimeInt,
4898 UndefinedLiteral,
4898 Undefined,
48994899 Null,
49004900 Nullable,
49014901 ErrorUnion,
......@@ -4929,7 +4929,7 @@ pub const TypeInfo = union(TypeId) {
49294929 Struct: Struct,
49304930 ComptimeFloat: void,
49314931 ComptimeInt: void,
4932 UndefinedLiteral: void,
4932 Undefined: void,
49334933 Null: void,
49344934 Nullable: Nullable,
49354935 ErrorUnion: ErrorUnion,
......@@ -5687,7 +5687,7 @@ pub const TypeId = enum {
56875687 Struct,
56885688 ComptimeFloat,
56895689 ComptimeInt,
5690 UndefinedLiteral,
5690 Undefined,
56915691 Null,
56925692 Nullable,
56935693 ErrorUnion,
......@@ -5715,7 +5715,7 @@ pub const TypeInfo = union(TypeId) {
57155715 Struct: Struct,
57165716 ComptimeFloat: void,
57175717 ComptimeInt: void,
5718 UndefinedLiteral: void,
5718 Undefined: void,
57195719 Null: void,
57205720 Nullable: Nullable,
57215721 ErrorUnion: ErrorUnion,
src/all_types.hpp+1-1
......@@ -1161,7 +1161,7 @@ enum TypeTableEntryId {
11611161 TypeTableEntryIdStruct,
11621162 TypeTableEntryIdComptimeFloat,
11631163 TypeTableEntryIdComptimeInt,
1164 TypeTableEntryIdUndefLit,
1164 TypeTableEntryIdUndefined,
11651165 TypeTableEntryIdNull,
11661166 TypeTableEntryIdMaybe,
11671167 TypeTableEntryIdErrorUnion,
src/analyze.cpp+22-22
......@@ -234,7 +234,7 @@ bool type_is_complete(TypeTableEntry *type_entry) {
234234 case TypeTableEntryIdArray:
235235 case TypeTableEntryIdComptimeFloat:
236236 case TypeTableEntryIdComptimeInt:
237 case TypeTableEntryIdUndefLit:
237 case TypeTableEntryIdUndefined:
238238 case TypeTableEntryIdNull:
239239 case TypeTableEntryIdMaybe:
240240 case TypeTableEntryIdErrorUnion:
......@@ -270,7 +270,7 @@ bool type_has_zero_bits_known(TypeTableEntry *type_entry) {
270270 case TypeTableEntryIdArray:
271271 case TypeTableEntryIdComptimeFloat:
272272 case TypeTableEntryIdComptimeInt:
273 case TypeTableEntryIdUndefLit:
273 case TypeTableEntryIdUndefined:
274274 case TypeTableEntryIdNull:
275275 case TypeTableEntryIdMaybe:
276276 case TypeTableEntryIdErrorUnion:
......@@ -1335,7 +1335,7 @@ static bool type_allowed_in_packed_struct(TypeTableEntry *type_entry) {
13351335 case TypeTableEntryIdUnreachable:
13361336 case TypeTableEntryIdComptimeFloat:
13371337 case TypeTableEntryIdComptimeInt:
1338 case TypeTableEntryIdUndefLit:
1338 case TypeTableEntryIdUndefined:
13391339 case TypeTableEntryIdNull:
13401340 case TypeTableEntryIdErrorUnion:
13411341 case TypeTableEntryIdErrorSet:
......@@ -1376,7 +1376,7 @@ static bool type_allowed_in_extern(CodeGen *g, TypeTableEntry *type_entry) {
13761376 case TypeTableEntryIdMetaType:
13771377 case TypeTableEntryIdComptimeFloat:
13781378 case TypeTableEntryIdComptimeInt:
1379 case TypeTableEntryIdUndefLit:
1379 case TypeTableEntryIdUndefined:
13801380 case TypeTableEntryIdNull:
13811381 case TypeTableEntryIdErrorUnion:
13821382 case TypeTableEntryIdErrorSet:
......@@ -1511,7 +1511,7 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c
15111511 case TypeTableEntryIdInvalid:
15121512 return g->builtin_types.entry_invalid;
15131513 case TypeTableEntryIdUnreachable:
1514 case TypeTableEntryIdUndefLit:
1514 case TypeTableEntryIdUndefined:
15151515 case TypeTableEntryIdNull:
15161516 case TypeTableEntryIdArgTuple:
15171517 case TypeTableEntryIdOpaque:
......@@ -1599,7 +1599,7 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c
15991599 case TypeTableEntryIdInvalid:
16001600 zig_unreachable();
16011601
1602 case TypeTableEntryIdUndefLit:
1602 case TypeTableEntryIdUndefined:
16031603 case TypeTableEntryIdNull:
16041604 case TypeTableEntryIdArgTuple:
16051605 case TypeTableEntryIdOpaque:
......@@ -3337,7 +3337,7 @@ TypeTableEntry *validate_var_type(CodeGen *g, AstNode *source_node, TypeTableEnt
33373337 case TypeTableEntryIdInvalid:
33383338 return g->builtin_types.entry_invalid;
33393339 case TypeTableEntryIdUnreachable:
3340 case TypeTableEntryIdUndefLit:
3340 case TypeTableEntryIdUndefined:
33413341 case TypeTableEntryIdNull:
33423342 case TypeTableEntryIdBlock:
33433343 case TypeTableEntryIdArgTuple:
......@@ -3732,7 +3732,7 @@ static bool is_container(TypeTableEntry *type_entry) {
37323732 case TypeTableEntryIdArray:
37333733 case TypeTableEntryIdComptimeFloat:
37343734 case TypeTableEntryIdComptimeInt:
3735 case TypeTableEntryIdUndefLit:
3735 case TypeTableEntryIdUndefined:
37363736 case TypeTableEntryIdNull:
37373737 case TypeTableEntryIdMaybe:
37383738 case TypeTableEntryIdErrorUnion:
......@@ -3781,7 +3781,7 @@ void resolve_container_type(CodeGen *g, TypeTableEntry *type_entry) {
37813781 case TypeTableEntryIdArray:
37823782 case TypeTableEntryIdComptimeFloat:
37833783 case TypeTableEntryIdComptimeInt:
3784 case TypeTableEntryIdUndefLit:
3784 case TypeTableEntryIdUndefined:
37853785 case TypeTableEntryIdNull:
37863786 case TypeTableEntryIdMaybe:
37873787 case TypeTableEntryIdErrorUnion:
......@@ -4285,7 +4285,7 @@ bool handle_is_ptr(TypeTableEntry *type_entry) {
42854285 case TypeTableEntryIdMetaType:
42864286 case TypeTableEntryIdComptimeFloat:
42874287 case TypeTableEntryIdComptimeInt:
4288 case TypeTableEntryIdUndefLit:
4288 case TypeTableEntryIdUndefined:
42894289 case TypeTableEntryIdNull:
42904290 case TypeTableEntryIdNamespace:
42914291 case TypeTableEntryIdBlock:
......@@ -4672,7 +4672,7 @@ static uint32_t hash_const_val(ConstExprValue *const_val) {
46724672 case TypeTableEntryIdPromise:
46734673 // TODO better hashing algorithm
46744674 return 223048345;
4675 case TypeTableEntryIdUndefLit:
4675 case TypeTableEntryIdUndefined:
46764676 return 162837799;
46774677 case TypeTableEntryIdNull:
46784678 return 844854567;
......@@ -4756,7 +4756,7 @@ static bool can_mutate_comptime_var_state(ConstExprValue *value) {
47564756 case TypeTableEntryIdFloat:
47574757 case TypeTableEntryIdComptimeFloat:
47584758 case TypeTableEntryIdComptimeInt:
4759 case TypeTableEntryIdUndefLit:
4759 case TypeTableEntryIdUndefined:
47604760 case TypeTableEntryIdNull:
47614761 case TypeTableEntryIdNamespace:
47624762 case TypeTableEntryIdBoundFn:
......@@ -4821,7 +4821,7 @@ static bool return_type_is_cacheable(TypeTableEntry *return_type) {
48214821 case TypeTableEntryIdFloat:
48224822 case TypeTableEntryIdComptimeFloat:
48234823 case TypeTableEntryIdComptimeInt:
4824 case TypeTableEntryIdUndefLit:
4824 case TypeTableEntryIdUndefined:
48254825 case TypeTableEntryIdNull:
48264826 case TypeTableEntryIdNamespace:
48274827 case TypeTableEntryIdBoundFn:
......@@ -4932,7 +4932,7 @@ bool type_requires_comptime(TypeTableEntry *type_entry) {
49324932 zig_unreachable();
49334933 case TypeTableEntryIdComptimeFloat:
49344934 case TypeTableEntryIdComptimeInt:
4935 case TypeTableEntryIdUndefLit:
4935 case TypeTableEntryIdUndefined:
49364936 case TypeTableEntryIdNull:
49374937 case TypeTableEntryIdMetaType:
49384938 case TypeTableEntryIdNamespace:
......@@ -5410,7 +5410,7 @@ bool const_values_equal(ConstExprValue *a, ConstExprValue *b) {
54105410 return false;
54115411 }
54125412 return true;
5413 case TypeTableEntryIdUndefLit:
5413 case TypeTableEntryIdUndefined:
54145414 zig_panic("TODO");
54155415 case TypeTableEntryIdNull:
54165416 zig_panic("TODO");
......@@ -5651,7 +5651,7 @@ void render_const_value(CodeGen *g, Buf *buf, ConstExprValue *const_val) {
56515651 buf_appendf(buf, "null");
56525652 return;
56535653 }
5654 case TypeTableEntryIdUndefLit:
5654 case TypeTableEntryIdUndefined:
56555655 {
56565656 buf_appendf(buf, "undefined");
56575657 return;
......@@ -5763,7 +5763,7 @@ uint32_t type_id_hash(TypeId x) {
57635763 case TypeTableEntryIdStruct:
57645764 case TypeTableEntryIdComptimeFloat:
57655765 case TypeTableEntryIdComptimeInt:
5766 case TypeTableEntryIdUndefLit:
5766 case TypeTableEntryIdUndefined:
57675767 case TypeTableEntryIdNull:
57685768 case TypeTableEntryIdMaybe:
57695769 case TypeTableEntryIdErrorSet:
......@@ -5809,7 +5809,7 @@ bool type_id_eql(TypeId a, TypeId b) {
58095809 case TypeTableEntryIdStruct:
58105810 case TypeTableEntryIdComptimeFloat:
58115811 case TypeTableEntryIdComptimeInt:
5812 case TypeTableEntryIdUndefLit:
5812 case TypeTableEntryIdUndefined:
58135813 case TypeTableEntryIdNull:
58145814 case TypeTableEntryIdMaybe:
58155815 case TypeTableEntryIdPromise:
......@@ -5931,7 +5931,7 @@ static const TypeTableEntryId all_type_ids[] = {
59315931 TypeTableEntryIdStruct,
59325932 TypeTableEntryIdComptimeFloat,
59335933 TypeTableEntryIdComptimeInt,
5934 TypeTableEntryIdUndefLit,
5934 TypeTableEntryIdUndefined,
59355935 TypeTableEntryIdNull,
59365936 TypeTableEntryIdMaybe,
59375937 TypeTableEntryIdErrorUnion,
......@@ -5984,7 +5984,7 @@ size_t type_id_index(TypeTableEntry *entry) {
59845984 return 9;
59855985 case TypeTableEntryIdComptimeInt:
59865986 return 10;
5987 case TypeTableEntryIdUndefLit:
5987 case TypeTableEntryIdUndefined:
59885988 return 11;
59895989 case TypeTableEntryIdNull:
59905990 return 12;
......@@ -6042,8 +6042,8 @@ const char *type_id_name(TypeTableEntryId id) {
60426042 return "ComptimeFloat";
60436043 case TypeTableEntryIdComptimeInt:
60446044 return "ComptimeInt";
6045 case TypeTableEntryIdUndefLit:
6046 return "UndefinedLiteral";
6045 case TypeTableEntryIdUndefined:
6046 return "Undefined";
60476047 case TypeTableEntryIdNull:
60486048 return "Null";
60496049 case TypeTableEntryIdMaybe:
src/codegen.cpp+7-7
......@@ -4918,7 +4918,7 @@ static LLVMValueRef pack_const_int(CodeGen *g, LLVMTypeRef big_int_type_ref, Con
49184918 case TypeTableEntryIdUnreachable:
49194919 case TypeTableEntryIdComptimeFloat:
49204920 case TypeTableEntryIdComptimeInt:
4921 case TypeTableEntryIdUndefLit:
4921 case TypeTableEntryIdUndefined:
49224922 case TypeTableEntryIdNull:
49234923 case TypeTableEntryIdErrorUnion:
49244924 case TypeTableEntryIdErrorSet:
......@@ -5364,7 +5364,7 @@ static LLVMValueRef gen_const_val(CodeGen *g, ConstExprValue *const_val, const c
53645364 case TypeTableEntryIdUnreachable:
53655365 case TypeTableEntryIdComptimeFloat:
53665366 case TypeTableEntryIdComptimeInt:
5367 case TypeTableEntryIdUndefLit:
5367 case TypeTableEntryIdUndefined:
53685368 case TypeTableEntryIdNull:
53695369 case TypeTableEntryIdNamespace:
53705370 case TypeTableEntryIdBlock:
......@@ -6026,7 +6026,7 @@ static void define_builtin_types(CodeGen *g) {
60266026 g->primitive_type_table.put(&entry->name, entry);
60276027 }
60286028 {
6029 TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdUndefLit);
6029 TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdUndefined);
60306030 buf_init_from_str(&entry->name, "(undefined)");
60316031 entry->zero_bits = true;
60326032 g->builtin_types.entry_undef = entry;
......@@ -6499,7 +6499,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
64996499 " Struct: Struct,\n"
65006500 " ComptimeFloat: void,\n"
65016501 " ComptimeInt: void,\n"
6502 " UndefinedLiteral: void,\n"
6502 " Undefined: void,\n"
65036503 " Null: void,\n"
65046504 " Nullable: Nullable,\n"
65056505 " ErrorUnion: ErrorUnion,\n"
......@@ -7074,7 +7074,7 @@ static void prepend_c_type_to_decl_list(CodeGen *g, GenH *gen_h, TypeTableEntry
70747074 case TypeTableEntryIdMetaType:
70757075 case TypeTableEntryIdComptimeFloat:
70767076 case TypeTableEntryIdComptimeInt:
7077 case TypeTableEntryIdUndefLit:
7077 case TypeTableEntryIdUndefined:
70787078 case TypeTableEntryIdNull:
70797079 case TypeTableEntryIdNamespace:
70807080 case TypeTableEntryIdBlock:
......@@ -7259,7 +7259,7 @@ static void get_c_type(CodeGen *g, GenH *gen_h, TypeTableEntry *type_entry, Buf
72597259 case TypeTableEntryIdBlock:
72607260 case TypeTableEntryIdComptimeFloat:
72617261 case TypeTableEntryIdComptimeInt:
7262 case TypeTableEntryIdUndefLit:
7262 case TypeTableEntryIdUndefined:
72637263 case TypeTableEntryIdNull:
72647264 case TypeTableEntryIdArgTuple:
72657265 case TypeTableEntryIdPromise:
......@@ -7412,7 +7412,7 @@ static void gen_h_file(CodeGen *g) {
74127412 case TypeTableEntryIdComptimeFloat:
74137413 case TypeTableEntryIdComptimeInt:
74147414 case TypeTableEntryIdArray:
7415 case TypeTableEntryIdUndefLit:
7415 case TypeTableEntryIdUndefined:
74167416 case TypeTableEntryIdNull:
74177417 case TypeTableEntryIdErrorUnion:
74187418 case TypeTableEntryIdErrorSet:
src/ir.cpp+22-22
......@@ -8142,7 +8142,7 @@ static ImplicitCastMatchResult ir_types_match_with_implicit_cast(IrAnalyze *ira,
81428142 }
81438143
81448144 // implicit undefined literal to anything
8145 if (actual_type->id == TypeTableEntryIdUndefLit) {
8145 if (actual_type->id == TypeTableEntryIdUndefined) {
81468146 return ImplicitCastMatchResultYes;
81478147 }
81488148
......@@ -8546,11 +8546,11 @@ static TypeTableEntry *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_nod
85468546 continue;
85478547 }
85488548
8549 if (cur_type->id == TypeTableEntryIdUndefLit) {
8549 if (cur_type->id == TypeTableEntryIdUndefined) {
85508550 continue;
85518551 }
85528552
8553 if (prev_type->id == TypeTableEntryIdUndefLit) {
8553 if (prev_type->id == TypeTableEntryIdUndefined) {
85548554 prev_inst = cur_inst;
85558555 continue;
85568556 }
......@@ -10230,7 +10230,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
1023010230
1023110231
1023210232 // explicit cast from undefined to anything
10233 if (actual_type->id == TypeTableEntryIdUndefLit) {
10233 if (actual_type->id == TypeTableEntryIdUndefined) {
1023410234 return ir_analyze_undefined_to_anything(ira, source_instr, value, wanted_type);
1023510235 }
1023610236
......@@ -10795,7 +10795,7 @@ static TypeTableEntry *ir_analyze_bin_op_cmp(IrAnalyze *ira, IrInstructionBinOp
1079510795 case TypeTableEntryIdUnreachable:
1079610796 case TypeTableEntryIdArray:
1079710797 case TypeTableEntryIdStruct:
10798 case TypeTableEntryIdUndefLit:
10798 case TypeTableEntryIdUndefined:
1079910799 case TypeTableEntryIdNull:
1080010800 case TypeTableEntryIdMaybe:
1080110801 case TypeTableEntryIdErrorUnion:
......@@ -11643,7 +11643,7 @@ static VarClassRequired get_var_class_required(TypeTableEntry *type_entry) {
1164311643 return VarClassRequiredAny;
1164411644 case TypeTableEntryIdComptimeFloat:
1164511645 case TypeTableEntryIdComptimeInt:
11646 case TypeTableEntryIdUndefLit:
11646 case TypeTableEntryIdUndefined:
1164711647 case TypeTableEntryIdBlock:
1164811648 case TypeTableEntryIdNull:
1164911649 case TypeTableEntryIdOpaque:
......@@ -11912,7 +11912,7 @@ static TypeTableEntry *ir_analyze_instruction_export(IrAnalyze *ira, IrInstructi
1191211912 case TypeTableEntryIdUnreachable:
1191311913 case TypeTableEntryIdComptimeFloat:
1191411914 case TypeTableEntryIdComptimeInt:
11915 case TypeTableEntryIdUndefLit:
11915 case TypeTableEntryIdUndefined:
1191611916 case TypeTableEntryIdNull:
1191711917 case TypeTableEntryIdMaybe:
1191811918 case TypeTableEntryIdErrorUnion:
......@@ -11936,7 +11936,7 @@ static TypeTableEntry *ir_analyze_instruction_export(IrAnalyze *ira, IrInstructi
1193611936 case TypeTableEntryIdArray:
1193711937 case TypeTableEntryIdComptimeFloat:
1193811938 case TypeTableEntryIdComptimeInt:
11939 case TypeTableEntryIdUndefLit:
11939 case TypeTableEntryIdUndefined:
1194011940 case TypeTableEntryIdNull:
1194111941 case TypeTableEntryIdMaybe:
1194211942 case TypeTableEntryIdErrorUnion:
......@@ -12900,7 +12900,7 @@ static TypeTableEntry *ir_analyze_maybe(IrAnalyze *ira, IrInstructionUnOp *un_op
1290012900 case TypeTableEntryIdStruct:
1290112901 case TypeTableEntryIdComptimeFloat:
1290212902 case TypeTableEntryIdComptimeInt:
12903 case TypeTableEntryIdUndefLit:
12903 case TypeTableEntryIdUndefined:
1290412904 case TypeTableEntryIdNull:
1290512905 case TypeTableEntryIdMaybe:
1290612906 case TypeTableEntryIdErrorUnion:
......@@ -13153,7 +13153,7 @@ static TypeTableEntry *ir_analyze_instruction_phi(IrAnalyze *ira, IrInstructionP
1315313153 if (resolved_type->id == TypeTableEntryIdComptimeFloat ||
1315413154 resolved_type->id == TypeTableEntryIdComptimeInt ||
1315513155 resolved_type->id == TypeTableEntryIdNull ||
13156 resolved_type->id == TypeTableEntryIdUndefLit)
13156 resolved_type->id == TypeTableEntryIdUndefined)
1315713157 {
1315813158 ir_add_error_node(ira, phi_instruction->base.source_node,
1315913159 buf_sprintf("unable to infer expression type"));
......@@ -14215,7 +14215,7 @@ static TypeTableEntry *ir_analyze_instruction_typeof(IrAnalyze *ira, IrInstructi
1421514215 zig_unreachable(); // handled above
1421614216 case TypeTableEntryIdComptimeFloat:
1421714217 case TypeTableEntryIdComptimeInt:
14218 case TypeTableEntryIdUndefLit:
14218 case TypeTableEntryIdUndefined:
1421914219 case TypeTableEntryIdNull:
1422014220 case TypeTableEntryIdNamespace:
1422114221 case TypeTableEntryIdBlock:
......@@ -14479,7 +14479,7 @@ static TypeTableEntry *ir_analyze_instruction_slice_type(IrAnalyze *ira,
1447914479 case TypeTableEntryIdInvalid: // handled above
1448014480 zig_unreachable();
1448114481 case TypeTableEntryIdUnreachable:
14482 case TypeTableEntryIdUndefLit:
14482 case TypeTableEntryIdUndefined:
1448314483 case TypeTableEntryIdNull:
1448414484 case TypeTableEntryIdBlock:
1448514485 case TypeTableEntryIdArgTuple:
......@@ -14587,7 +14587,7 @@ static TypeTableEntry *ir_analyze_instruction_array_type(IrAnalyze *ira,
1458714587 case TypeTableEntryIdInvalid: // handled above
1458814588 zig_unreachable();
1458914589 case TypeTableEntryIdUnreachable:
14590 case TypeTableEntryIdUndefLit:
14590 case TypeTableEntryIdUndefined:
1459114591 case TypeTableEntryIdNull:
1459214592 case TypeTableEntryIdBlock:
1459314593 case TypeTableEntryIdArgTuple:
......@@ -14656,7 +14656,7 @@ static TypeTableEntry *ir_analyze_instruction_size_of(IrAnalyze *ira,
1465614656 case TypeTableEntryIdInvalid: // handled above
1465714657 zig_unreachable();
1465814658 case TypeTableEntryIdUnreachable:
14659 case TypeTableEntryIdUndefLit:
14659 case TypeTableEntryIdUndefined:
1466014660 case TypeTableEntryIdNull:
1466114661 case TypeTableEntryIdBlock:
1466214662 case TypeTableEntryIdComptimeFloat:
......@@ -15099,7 +15099,7 @@ static TypeTableEntry *ir_analyze_instruction_switch_target(IrAnalyze *ira,
1509915099 case TypeTableEntryIdUnreachable:
1510015100 case TypeTableEntryIdArray:
1510115101 case TypeTableEntryIdStruct:
15102 case TypeTableEntryIdUndefLit:
15102 case TypeTableEntryIdUndefined:
1510315103 case TypeTableEntryIdNull:
1510415104 case TypeTableEntryIdMaybe:
1510515105 case TypeTableEntryIdBlock:
......@@ -15620,7 +15620,7 @@ static TypeTableEntry *ir_analyze_min_max(IrAnalyze *ira, IrInstruction *source_
1562015620 case TypeTableEntryIdStruct:
1562115621 case TypeTableEntryIdComptimeFloat:
1562215622 case TypeTableEntryIdComptimeInt:
15623 case TypeTableEntryIdUndefLit:
15623 case TypeTableEntryIdUndefined:
1562415624 case TypeTableEntryIdNull:
1562515625 case TypeTableEntryIdMaybe:
1562615626 case TypeTableEntryIdErrorUnion:
......@@ -16282,7 +16282,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t
1628216282 case TypeTableEntryIdUnreachable:
1628316283 case TypeTableEntryIdComptimeFloat:
1628416284 case TypeTableEntryIdComptimeInt:
16285 case TypeTableEntryIdUndefLit:
16285 case TypeTableEntryIdUndefined:
1628616286 case TypeTableEntryIdNull:
1628716287 case TypeTableEntryIdNamespace:
1628816288 case TypeTableEntryIdBlock:
......@@ -17878,7 +17878,7 @@ static TypeTableEntry *ir_analyze_instruction_align_of(IrAnalyze *ira, IrInstruc
1787817878 case TypeTableEntryIdUnreachable:
1787917879 case TypeTableEntryIdComptimeFloat:
1788017880 case TypeTableEntryIdComptimeInt:
17881 case TypeTableEntryIdUndefLit:
17881 case TypeTableEntryIdUndefined:
1788217882 case TypeTableEntryIdNull:
1788317883 case TypeTableEntryIdNamespace:
1788417884 case TypeTableEntryIdBlock:
......@@ -18612,7 +18612,7 @@ static void buf_write_value_bytes(CodeGen *codegen, uint8_t *buf, ConstExprValue
1861218612 case TypeTableEntryIdUnreachable:
1861318613 case TypeTableEntryIdComptimeFloat:
1861418614 case TypeTableEntryIdComptimeInt:
18615 case TypeTableEntryIdUndefLit:
18615 case TypeTableEntryIdUndefined:
1861618616 case TypeTableEntryIdNull:
1861718617 case TypeTableEntryIdPromise:
1861818618 zig_unreachable();
......@@ -18679,7 +18679,7 @@ static void buf_read_value_bytes(CodeGen *codegen, uint8_t *buf, ConstExprValue
1867918679 case TypeTableEntryIdUnreachable:
1868018680 case TypeTableEntryIdComptimeFloat:
1868118681 case TypeTableEntryIdComptimeInt:
18682 case TypeTableEntryIdUndefLit:
18682 case TypeTableEntryIdUndefined:
1868318683 case TypeTableEntryIdNull:
1868418684 case TypeTableEntryIdPromise:
1868518685 zig_unreachable();
......@@ -18760,7 +18760,7 @@ static TypeTableEntry *ir_analyze_instruction_bit_cast(IrAnalyze *ira, IrInstruc
1876018760 case TypeTableEntryIdUnreachable:
1876118761 case TypeTableEntryIdComptimeFloat:
1876218762 case TypeTableEntryIdComptimeInt:
18763 case TypeTableEntryIdUndefLit:
18763 case TypeTableEntryIdUndefined:
1876418764 case TypeTableEntryIdNull:
1876518765 ir_add_error(ira, dest_type_value,
1876618766 buf_sprintf("unable to @bitCast from type '%s'", buf_ptr(&src_type->name)));
......@@ -18786,7 +18786,7 @@ static TypeTableEntry *ir_analyze_instruction_bit_cast(IrAnalyze *ira, IrInstruc
1878618786 case TypeTableEntryIdUnreachable:
1878718787 case TypeTableEntryIdComptimeFloat:
1878818788 case TypeTableEntryIdComptimeInt:
18789 case TypeTableEntryIdUndefLit:
18789 case TypeTableEntryIdUndefined:
1879018790 case TypeTableEntryIdNull:
1879118791 ir_add_error(ira, dest_type_value,
1879218792 buf_sprintf("unable to @bitCast to type '%s'", buf_ptr(&dest_type->name)));
test/cases/misc.zig+1-1
......@@ -503,7 +503,7 @@ test "@typeId" {
503503 assert(@typeId(AStruct) == Tid.Struct);
504504 assert(@typeId(@typeOf(1)) == Tid.ComptimeInt);
505505 assert(@typeId(@typeOf(1.0)) == Tid.ComptimeFloat);
506 assert(@typeId(@typeOf(undefined)) == Tid.UndefinedLiteral);
506 assert(@typeId(@typeOf(undefined)) == Tid.Undefined);
507507 assert(@typeId(@typeOf(null)) == Tid.Null);
508508 assert(@typeId(?i32) == Tid.Nullable);
509509 assert(@typeId(error!i32) == Tid.ErrorUnion);