From cfd0dfd2bf24c8e33e37c689b4144b1180bbcb05 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 10 Sep 2018 21:56:16 +0100 Subject: [PATCH] Remove assertion from constant parameter --- src/check_type.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/check_type.cpp b/src/check_type.cpp index 04efba512..0e073f7fb 100644 --- a/src/check_type.cpp +++ b/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->TypeName.is_type_alias = true; } else { - GB_ASSERT(operand.mode == Addressing_Constant); e = alloc_entity_constant(scope, token, operand.type, operand.value); } } else {