diff options
| author | gingerBill <bill@gingerbill.org> | 2019-09-08 15:47:57 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-09-08 15:47:57 +0100 |
| commit | c7cc38b7d8894578e7158e8e092531c7ec71f815 (patch) | |
| tree | 512ee4e620a9afa59940d8590f103853d2bb4f57 /src/check_type.cpp | |
| parent | 4afc78efc682152a9b096781a1598fd1841ca938 (diff) | |
Remove assert
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index e1602365a..fe9e6f817 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -441,8 +441,6 @@ void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast *node, Array< if (poly_operands != nullptr) { Operand operand = (*poly_operands)[entities.count]; if (is_type_param) { - GB_ASSERT(operand.mode == Addressing_Type || - operand.mode == Addressing_Invalid); if (is_type_polymorphic(base_type(operand.type))) { is_polymorphic = true; can_check_fields = false; |