aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-09-10 21:56:16 +0100
committergingerBill <bill@gingerbill.org>2018-09-10 21:56:16 +0100
commitcfd0dfd2bf24c8e33e37c689b4144b1180bbcb05 (patch)
treef441d35d7f6a9545144fdc7439ae922f67f6f30b /src/check_type.cpp
parent46b18681857c4bacf9bdf5d92081c06b645e97b2 (diff)
Remove assertion from constant parameter
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
1 files changed, 0 insertions, 1 deletions
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 {