Remove the need for type_of, size_of, align_of, offset_of to be keywords

This commit is contained in:
gingerBill
2020-05-22 12:32:29 +01:00
parent d09ac8943a
commit 86b613fb15
3 changed files with 0 additions and 37 deletions

View File

@@ -7769,23 +7769,6 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
o->type = t_context;
break;
case Token_size_of:
o->mode = Addressing_Builtin;
o->builtin_id = BuiltinProc_size_of;
break;
case Token_align_of:
o->mode = Addressing_Builtin;
o->builtin_id = BuiltinProc_align_of;
break;
case Token_offset_of:
o->mode = Addressing_Builtin;
o->builtin_id = BuiltinProc_offset_of;
break;
case Token_type_of:
o->mode = Addressing_Builtin;
o->builtin_id = BuiltinProc_type_of;
break;
default:
error(node, "Illegal implicit name '%.*s'", LIT(i->string));
return kind;