Browse Source

Remove assert

gingerBill 6 years ago
parent
commit
c7cc38b7d8
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/check_type.cpp

+ 0 - 2
src/check_type.cpp

@@ -441,8 +441,6 @@ void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast *node, Array<
 					if (poly_operands != nullptr) {
 					if (poly_operands != nullptr) {
 						Operand operand = (*poly_operands)[entities.count];
 						Operand operand = (*poly_operands)[entities.count];
 						if (is_type_param) {
 						if (is_type_param) {
-							GB_ASSERT(operand.mode == Addressing_Type ||
-							          operand.mode == Addressing_Invalid);
 							if (is_type_polymorphic(base_type(operand.type))) {
 							if (is_type_polymorphic(base_type(operand.type))) {
 								is_polymorphic = true;
 								is_polymorphic = true;
 								can_check_fields = false;
 								can_check_fields = false;