Browse Source

Remove assertion from constant parameter

gingerBill 7 years ago
parent
commit
cfd0dfd2bf
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/check_type.cpp

+ 0 - 1
src/check_type.cpp

@@ -445,7 +445,6 @@ void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast *node, Array<
 							e = alloc_entity_type_name(scope, token, operand.type);
 							e = alloc_entity_type_name(scope, token, operand.type);
 							e->TypeName.is_type_alias = true;
 							e->TypeName.is_type_alias = true;
 						} else {
 						} else {
-							GB_ASSERT(operand.mode == Addressing_Constant);
 							e = alloc_entity_constant(scope, token, operand.type, operand.value);
 							e = alloc_entity_constant(scope, token, operand.type, operand.value);
 						}
 						}
 					} else {
 					} else {