case Binary_Op_And: return 5;
case Binary_Op_Or: return 5;
case Binary_Op_Xor: return 5;
+ case Binary_Op_Shl: return 5;
+ case Binary_Op_Shr: return 5;
+ case Binary_Op_Sar: return 5;
case Binary_Op_Add: return 6;
case Binary_Op_Minus: return 6;
(*memres)->type_node = symres_type((*memres)->type_node);
(*memres)->type = type_build_from_ast(semstate.allocator, (*memres)->type_node);
- if ((*memres)->type->kind != Type_Kind_Array) {
+ if ((*memres)->type->kind != Type_Kind_Array && (*memres)->type->kind != Type_Kind_Struct) {
Type* ptr_type = type_make_pointer(semstate.allocator, (*memres)->type);
(*memres)->type = ptr_type;